aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorWojciech Kępka2021-06-08 04:42:35 +0000
committerBlaž Hrastnik2021-06-08 08:23:38 +0000
commit81e02e1ba405f9b43ffd0d0dd5a926df20cdafbf (patch)
tree8365519617ec08e05a6e929d5b57930b5381fb77 /helix-term/src
parentc349ceb61f7af9e90db7a58d2305da239157ae63 (diff)
Remove unwanted `as_str`
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 0e39f0f2..52ffefbb 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -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);