From 8f8df32b9d19a0c505d5b3f4f3eb11d38bbcbd44 Mon Sep 17 00:00:00 2001 From: 5-pebbles <5-pebble@protonmail.com> Date: Thu, 4 Jul 2024 23:41:19 -0400 Subject: [PATCH] fix(cmds): replace &Cow with &str; --- helix-term/src/commands/typed.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 729d404ec..63403b0bd 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2396,11 +2396,7 @@ fn redraw( Ok(()) } -fn move_buffer_impl( - cx: &mut compositor::Context, - path: &Cow, - force: bool, -) -> anyhow::Result<()> { +fn move_buffer_impl(cx: &mut compositor::Context, path: &str, force: bool) -> anyhow::Result<()> { let doc = doc!(cx.editor); let old_path = doc .path()