From ffed075422079bf6f7212fc18084b04cdda05d16 Mon Sep 17 00:00:00 2001 From: TheRealLorenz Date: Tue, 29 Aug 2023 19:32:39 +0200 Subject: [PATCH] Fix clippy error --- helix-term/src/commands.rs | 4 ++-- helix-term/src/commands/typed.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index bbe724219690..d4c022dd3aff 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4848,7 +4848,7 @@ fn split_helper(editor: &mut Editor, action: Action) { } fn hsplit(cx: &mut Context) { - split_helper(&mut cx.editor, Action::HorizontalSplit); + split_helper(cx.editor, Action::HorizontalSplit); } fn hsplit_new(cx: &mut Context) { @@ -4856,7 +4856,7 @@ fn hsplit_new(cx: &mut Context) { } fn vsplit(cx: &mut Context) { - split_helper(&mut cx.editor, Action::VerticalSplit); + split_helper(cx.editor, Action::VerticalSplit); } fn vsplit_new(cx: &mut Context) { diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index a81dc020bab7..4f15932fe556 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1539,7 +1539,7 @@ fn vsplit( } if args.is_empty() { - split_helper(&mut cx.editor, Action::VerticalSplit); + split_helper(cx.editor, Action::VerticalSplit); } else { for arg in args { cx.editor @@ -1560,7 +1560,7 @@ fn hsplit( } if args.is_empty() { - split_helper(&mut cx.editor, Action::HorizontalSplit); + split_helper(cx.editor, Action::HorizontalSplit); } else { for arg in args { cx.editor