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 29a95fb1a6f606d05b27e52fed56a0ab26a06247
parent ded0d19d59bbdb5f3824e58b08885b5091de20d7
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 { .. })
    }
}