style(cli-rs): format the dialog footer key rule

rustfmt wraps the let-else of the TS keyless-action rule.
This commit is contained in:
Simon Klee 2026-11-04 23:29:43 +01:00
parent 028ae8f85a
commit 4302b3645f
No known key found for this signature in database
GPG key ID: B91696044D47BEA3

View file

@ -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)?);