Resolve clippy warnings

This commit is contained in:
Graham Esau 2023-08-20 17:19:53 +01:00
parent e0495c0c87
commit 072730f6f6
6 changed files with 15 additions and 18 deletions

View file

@ -69,10 +69,7 @@ impl<'a> Variant<'a> {
}
pub fn is_unit(&self) -> bool {
match self.style {
serde_ast::Style::Unit => true,
_ => false,
}
matches!(self.style, serde_ast::Style::Unit)
}
}