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 155d3decfc61ebd8ec8660e64785826626eb139b
parent ca8b64c5ea42a66009a52794d6c03b43c4d3b34d
1 file changed +1 -4
modified 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 { .. })
    }
}