Fix nightly clippy warnings

This commit is contained in:
Alexander Krotov
2020-10-17 15:24:09 +03:00
parent 2e118b773e
commit 64cd48a4e1
2 changed files with 3 additions and 6 deletions

View File

@@ -717,10 +717,7 @@ where
T: AsRef<str>,
{
fn is_none_or_empty(&self) -> bool {
match self {
Some(s) if !s.as_ref().is_empty() => false,
_ => true,
}
!matches!(self, Some(s) if !s.as_ref().is_empty())
}
}