From 4302b3645f1e244acb2d94de78b55c558d46a5c4 Mon Sep 17 00:00:00 2001 From: Simon Klee Date: Wed, 4 Nov 2026 23:29:43 +0100 Subject: [PATCH] style(cli-rs): format the dialog footer key rule rustfmt wraps the let-else of the TS keyless-action rule. --- packages/cli-rs/crates/ui/src/dialog.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli-rs/crates/ui/src/dialog.rs b/packages/cli-rs/crates/ui/src/dialog.rs index 04a1e1e6207..0923aa153a7 100644 --- a/packages/cli-rs/crates/ui/src/dialog.rs +++ b/packages/cli-rs/crates/ui/src/dialog.rs @@ -612,7 +612,8 @@ pub fn footer(cx: &DialogCx, props: FooterProps) -> View { .into_iter() .filter_map(|mut action| { // An action with neither shows its title alone; one with a command hides without a shortcut. - let Some(command) = action.command.as_deref().filter(|_| action.key.is_none()) else { + let Some(command) = action.command.as_deref().filter(|_| action.key.is_none()) + else { return Some(action); }; action.key = Some(cx.keymap.shortcut(command)?);