From 29a95fb1a6f606d05b27e52fed56a0ab26a06247 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 21 Aug 2025 13:40:10 +0200 Subject: [PATCH] radicle-fetch: Replace manual std::matches!() impl Signed-off-by: Matthias Beyer --- crates/radicle-fetch/src/state.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 { .. }) } }