mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
minor: fix some clippy lints
This commit is contained in:
parent
2aee17e556
commit
36a5ce9790
23 changed files with 102 additions and 138 deletions
|
@ -241,7 +241,7 @@ struct Struct {
|
|||
field: ()
|
||||
}
|
||||
"##;
|
||||
let source_file = ast::SourceFile::parse(&source).ok().unwrap();
|
||||
let source_file = ast::SourceFile::parse(source).ok().unwrap();
|
||||
let item = source_file.items().next().unwrap();
|
||||
let attr = item.attrs().nth(1).unwrap();
|
||||
|
||||
|
@ -258,7 +258,7 @@ struct Struct {
|
|||
field: ()
|
||||
}
|
||||
"##;
|
||||
let source_file = ast::SourceFile::parse(&source).ok().unwrap();
|
||||
let source_file = ast::SourceFile::parse(source).ok().unwrap();
|
||||
let item = source_file.items().next().unwrap();
|
||||
let attr = item.attrs().nth(1).unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue