fix clippy

This commit is contained in:
qdequele 2020-10-13 10:01:57 +02:00
parent b406b6ee44
commit 704defea78
5 changed files with 17 additions and 14 deletions

View file

@ -25,10 +25,7 @@ impl<T> OptionAll<T> {
}
pub fn is_all(&self) -> bool {
match self {
OptionAll::All => true,
_ => false,
}
matches!(self, OptionAll::All)
}
}