fix: Use correct args type
This commit is contained in:
parent
2842c69759
commit
1eca7cf512
1 changed files with 1 additions and 1 deletions
|
@ -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(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue