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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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