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 {
|
pub fn is_success(&self) -> bool {
|
||||||
match self {
|
std::matches!(self, Self::Success { .. })
|
||||||
Self::Success { .. } => true,
|
|
||||||
Self::Failed { .. } => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue