diff options
author | Wojciech Kępka | 2021-06-08 04:42:35 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-08 08:23:38 +0000 |
commit | 81e02e1ba405f9b43ffd0d0dd5a926df20cdafbf (patch) | |
tree | 8365519617ec08e05a6e929d5b57930b5381fb77 /helix-term/src/commands.rs | |
parent | c349ceb61f7af9e90db7a58d2305da239157ae63 (diff) |
Remove unwanted `as_str`
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
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); |