This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
better remove #[derive(Default)] in bitflags data structure #64
Labels
enhancement
New feature or request
When debugging the issue #63 , I found that, the match pattern doesn't check the default value 0, the value 0 means responder doesn't support mutual authentication feature.
But when creating object and setting bits on the bitflags object, default value 0 is used, it may result in inconsistency.
I would recommend to remove all #[derive(Default)] in bitflags data structure, and add default item to the bitflags data structure explicitly, then It may minimize the gap programmer make mistakes.
The text was updated successfully, but these errors were encountered: