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 {
|
impl Query {
|
||||||
pub fn is_invalid(&self) -> bool {
|
pub fn is_invalid(&self) -> bool {
|
||||||
match self {
|
matches!(self, Query::Invalid() | Query::InvalidShort())
|
||||||
Query::Invalid() => true,
|
|
||||||
Query::InvalidShort() => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue