on master help sign in
Remove unwanted `as_str`
81e02e1Wojciech Kępka
helix-term/src/commands.rs+1−1
@@ -479,7 +479,7 @@ pub fn replace(cx: &mut Context) {
479 .map(|c| if c == '\n' { '\n' } else { ch })
479 .map(|c| if c == '\n' { '\n' } else { ch })
480 .collect();
480 .collect();
481
481
482− (range.from(), to, Some(text.as_str().into()))
482+ (range.from(), to, Some(text.into()))
483 });
483 });
484
484
485 doc.apply(&transaction, view.id);
485 doc.apply(&transaction, view.id);