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 0b6c0bd6d9ac7312a7fae882a6ded6040c92cf18
parent 30f9ff622796c2d8373e67d25169b98b0a0ed300
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 { .. })
    }
}