lint: fix clippy::match_like_matches_macro
This commit is contained in:
parent
a2ace61e71
commit
3253f50127
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue