Resolve clippy warnings
This commit is contained in:
parent
e0495c0c87
commit
072730f6f6
6 changed files with 15 additions and 18 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue