Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen.rs')
-rw-r--r--xtask/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs
index 7dc1b40783..b23d700263 100644
--- a/xtask/src/codegen.rs
+++ b/xtask/src/codegen.rs
@@ -84,7 +84,7 @@ impl CommentBlock {
panic!("Use plain (non-doc) comments with tags like {tag}:\n {first}");
}
- block.id = id.trim().to_owned();
+ id.trim().clone_into(&mut block.id);
true
});
blocks