Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0a879f7

Browse files
sourcegen: Fix warnings about clippy str_to_string rule
1 parent 06f3995 commit 0a879f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sourcegen/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl CommentBlock {
6969
panic!("Use plain (non-doc) comments with tags like {tag}:\n {first}");
7070
}
7171

72-
block.id = id.trim().to_string();
72+
block.id = id.trim().to_owned();
7373
true
7474
});
7575
blocks
@@ -93,7 +93,7 @@ impl CommentBlock {
9393
if let Some(' ') = contents.chars().next() {
9494
contents = &contents[1..];
9595
}
96-
block.contents.push(contents.to_string());
96+
block.contents.push(contents.to_owned());
9797
}
9898
None => {
9999
if !block.contents.is_empty() {

0 commit comments

Comments
 (0)