radicle-fetch: Replace manual std::matches!() impl

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2025-08-21 13:40:10 +02:00 committed by Lorenz Leutgeb
parent ded0d19d59
commit 29a95fb1a6
1 changed files with 1 additions and 4 deletions

View File

@ -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 { .. })
}
}