mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
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:
parent
028ae8f85a
commit
4302b3645f
1 changed files with 2 additions and 1 deletions
|
|
@ -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)?);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue