From 1eca7cf512439a4a7506049fceb745489af70081 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Tue, 14 Jan 2025 21:05:47 +0100 Subject: [PATCH] fix: Use correct args type --- helix-term/src/commands/typed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 237c5ed4..366e1548 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2614,7 +2614,7 @@ fn trim_whitespace_impl(doc: &Document, selection: &Selection) -> Transaction { Transaction::delete(doc.text(), deletions.into_iter().rev()) } -fn trim_whitespace(cx: &mut compositor::Context, _args: Args, event: PromptEvent) -> anyhow::Result<()> { +fn trim_whitespace(cx: &mut compositor::Context, _args: &[Cow], event: PromptEvent) -> anyhow::Result<()> { if event != PromptEvent::Validate { return Ok(()); }