replace match ... { } with matches! macro where possible (#1208)

This commit is contained in:
Enno Boland
2021-03-09 00:02:45 +01:00
committed by GitHub
parent a856638316
commit 2414042269
2 changed files with 7 additions and 28 deletions

View File

@@ -148,10 +148,7 @@ impl Policy {
}
pub(crate) fn is_default(&self) -> bool {
match self.inner {
PolicyKind::Limit(10) => true,
_ => false,
}
matches!(self.inner, PolicyKind::Limit(10))
}
}