diff --git a/src/manager/locked_load.rs b/src/manager/locked_load.rs index 17a5ec1..2a8407b 100644 --- a/src/manager/locked_load.rs +++ b/src/manager/locked_load.rs @@ -25,11 +25,7 @@ impl LockedLoad { /// 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.