Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen/lints.rs')
| -rw-r--r-- | xtask/src/codegen/lints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/lints.rs b/xtask/src/codegen/lints.rs index 63abcfc090..6975f9328e 100644 --- a/xtask/src/codegen/lints.rs +++ b/xtask/src/codegen/lints.rs @@ -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)); |