on master help sign in
Remove unwanted `as_str`
commit81e02e1ba405f9b43ffd0d0dd5a926df20cdafbf authorWojciech Kępka <wojtek.kepka@protonmail.com> dateTue 8 Jun 2021, 06:42 (5 years ago) parentc349ceb
1 file changed+1−1
helix-term/src/commands.rs+1−1
helix-term/src/commands.rs+1−1
@@ -479,7 +479,7 @@ pub fn replace(cx: &mut Context) {
479479 .map(|c| if c == '\n' { '\n' } else { ch })
480480 .collect();
481481
482− (range.from(), to, Some(text.as_str().into()))
482+ (range.from(), to, Some(text.into()))
483483 });
484484
485485 doc.apply(&transaction, view.id);