Skip to content

Commit 88f088c

Browse files
text-edit: Fix warnings about clippy str_to_string rule
1 parent a897566 commit 88f088c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/text-edit/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ mod tests {
231231

232232
#[test]
233233
fn test_apply() {
234-
let mut text = "_11h1_2222_xx3333_4444_6666".to_string();
234+
let mut text = "_11h1_2222_xx3333_4444_6666".to_owned();
235235
let mut builder = TextEditBuilder::default();
236-
builder.replace(range(3, 4), "1".to_string());
236+
builder.replace(range(3, 4), "1".to_owned());
237237
builder.delete(range(11, 13));
238-
builder.insert(22.into(), "_5555".to_string());
238+
builder.insert(22.into(), "_5555".to_owned());
239239

240240
let text_edit = builder.finish();
241241
text_edit.apply(&mut text);

0 commit comments

Comments
 (0)