Remove unwanted `as_str`

imgbot
Wojciech Kępka 3 years ago committed by Blaž Hrastnik
parent c349ceb61f
commit 81e02e1ba4

@ -479,7 +479,7 @@ pub fn replace(cx: &mut Context) {
.map(|c| if c == '\n' { '\n' } else { ch })
.collect();
(range.from(), to, Some(text.as_str().into()))
(range.from(), to, Some(text.into()))
});
doc.apply(&transaction, view.id);

Loading…
Cancel
Save