We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str_to_string
1 parent 06f3995 commit 0a879f7Copy full SHA for 0a879f7
crates/sourcegen/src/lib.rs
@@ -69,7 +69,7 @@ impl CommentBlock {
69
panic!("Use plain (non-doc) comments with tags like {tag}:\n {first}");
70
}
71
72
- block.id = id.trim().to_string();
+ block.id = id.trim().to_owned();
73
true
74
});
75
blocks
@@ -93,7 +93,7 @@ impl CommentBlock {
93
if let Some(' ') = contents.chars().next() {
94
contents = &contents[1..];
95
96
- block.contents.push(contents.to_string());
+ block.contents.push(contents.to_owned());
97
98
None => {
99
if !block.contents.is_empty() {
0 commit comments