mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Fix clippy::single_char_pattern
This commit is contained in:
parent
682bf04bf4
commit
ed3d93b875
4 changed files with 6 additions and 9 deletions
|
@ -31,11 +31,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
pub(crate) fn validate_body(&mut self, db: &impl HirDatabase) {
|
||||
let body = self.func.body(db);
|
||||
for e in body.exprs() {
|
||||
match e {
|
||||
(id, Expr::StructLit { path, fields, spread }) => {
|
||||
self.validate_struct_literal(id, path, fields, spread, db)
|
||||
}
|
||||
_ => (),
|
||||
if let (id, Expr::StructLit { path, fields, spread }) = e {
|
||||
self.validate_struct_literal(id, path, fields, spread, db);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue