@@ -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();
482− (range.from(), to, Some(text.as_str().into()))
482+ (range.from(), to, Some(text.into()))
485 doc.apply(&transaction, view.id);
485 doc.apply(&transaction, view.id);