mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Remove unwanted as_str
This commit is contained in:
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…
Reference in New Issue
Block a user