Skip to content

Commit

Permalink
reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-rendina-prima committed May 7, 2024
1 parent 8ab3e7b commit ba87248
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/manager/locked_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ impl<T> LockedLoad<T> {

/// Checks if the AggregateState was found.
pub fn is_some(&self) -> bool {
let Self(inner) = self;
match inner {
LockedLoadInner::None { .. } => false,
LockedLoadInner::Some(_) => true,
}
matches!(self, Self(LockedLoadInner::Some(_)))
}

/// Extracts the contained AggregateState, or panics otherwise.
Expand Down

0 comments on commit ba87248

Please sign in to comment.