Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

better remove #[derive(Default)] in bitflags data structure #64

@longlongyang

Description

@longlongyang

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions