Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-fetch: Replace manual std::matches!() impl
Matthias Beyer committed 8 months ago
commit 86154cae1ab25aa13e4c79a7f760be06c3060949
parent a670b6e668761ea5893b7d343b4515b888712f14
1 file changed +1 -4
modified crates/radicle-fetch/src/state.rs
@@ -140,10 +140,7 @@ impl FetchResult {
    }

    pub fn is_success(&self) -> bool {
-
        match self {
-
            Self::Success { .. } => true,
-
            Self::Failed { .. } => false,
-
        }
+
        std::matches!(self, Self::Success { .. })
    }
}