mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Fix new clippy lints
This commit is contained in:
parent
8e324e98a1
commit
2ae3e57c26
33 changed files with 31 additions and 42 deletions
|
@ -280,7 +280,7 @@ fn generate_descriptor_clippy(buf: &mut String, path: &Path) {
|
|||
let line = &line[..up_to];
|
||||
|
||||
let clippy_lint = clippy_lints.last_mut().expect("clippy lint must already exist");
|
||||
clippy_lint.help = unescape(line).trim().to_owned();
|
||||
unescape(line).trim().clone_into(&mut clippy_lint.help);
|
||||
}
|
||||
}
|
||||
clippy_lints.sort_by(|lint, lint2| lint.id.cmp(&lint2.id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue