diff --git a/crates/radicle-fetch/src/state.rs b/crates/radicle-fetch/src/state.rs index f373935f..e0d152df 100644 --- a/crates/radicle-fetch/src/state.rs +++ b/crates/radicle-fetch/src/state.rs @@ -136,10 +136,7 @@ impl FetchResult { } pub fn is_success(&self) -> bool { - match self { - Self::Success { .. } => true, - Self::Failed { .. } => false, - } + std::matches!(self, Self::Success { .. }) } }