radicle-fetch: Replace manual std::matches!() impl
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
ded0d19d59
commit
29a95fb1a6
|
|
@ -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 { .. })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue