From 81e02e1ba405f9b43ffd0d0dd5a926df20cdafbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20K=C4=99pka?= Date: Tue, 8 Jun 2021 06:42:35 +0200 Subject: [PATCH] Remove unwanted `as_str` --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);