fix: Use correct args type

This commit is contained in:
Kalle Carlbark 2025-01-14 21:05:47 +01:00
parent 2842c69759
commit 1eca7cf512

View file

@ -2614,7 +2614,7 @@ fn trim_whitespace_impl(doc: &Document, selection: &Selection) -> Transaction {
Transaction::delete(doc.text(), deletions.into_iter().rev()) 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<str>], event: PromptEvent) -> anyhow::Result<()> {
if event != PromptEvent::Validate { if event != PromptEvent::Validate {
return Ok(()); return Ok(());
} }