Remove unwanted as_str

This commit is contained in:
Wojciech Kępka 2021-06-08 06:42:35 +02:00 committed by Blaž Hrastnik
parent c349ceb61f
commit 81e02e1ba4

View File

@ -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);