lint: fix clippy::match_like_matches_macro

This commit is contained in:
Nora Widdecke 2022-02-18 14:08:13 +01:00
parent a2ace61e71
commit 3253f50127
1 changed files with 1 additions and 5 deletions

View File

@ -64,11 +64,7 @@ pub enum Query {
impl Query {
pub fn is_invalid(&self) -> bool {
match self {
Query::Invalid() => true,
Query::InvalidShort() => true,
_ => false,
}
matches!(self, Query::Invalid() | Query::InvalidShort())
}
}