Skip to content

Commit

Permalink
Implement PartialEq and Eq for SessionState
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Averyanov <[email protected]>
  • Loading branch information
a1ien authored and Ilya Averyanov committed Sep 23, 2022
1 parent 2b77b9b commit c6c2526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptoki/src/session/session_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl TryFrom<CK_SESSION_INFO> for SessionInfo {

/// The current state of the session which describes access to token and session
/// obects based on user type and login status
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum SessionState {
/// The session has read-only access to public token objects and R/W access
/// to to public session objects
Expand Down

0 comments on commit c6c2526

Please sign in to comment.