mirror of https://github.com/helix-editor/helix
Remove unwanted `as_str`
parent
c349ceb61f
commit
81e02e1ba4
|
@ -479,7 +479,7 @@ pub fn replace(cx: &mut Context) {
|
||||||
.map(|c| if c == '\n' { '\n' } else { ch })
|
.map(|c| if c == '\n' { '\n' } else { ch })
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
(range.from(), to, Some(text.as_str().into()))
|
(range.from(), to, Some(text.into()))
|
||||||
});
|
});
|
||||||
|
|
||||||
doc.apply(&transaction, view.id);
|
doc.apply(&transaction, view.id);
|
||||||
|
|
Loading…
Reference in New Issue