mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 01:22:49 +00:00
cargo fmt
This commit is contained in:
@@ -111,10 +111,13 @@ impl<'a, K> PresetPanelMenu<'a, K> {
|
||||
.into_iter()
|
||||
.map(|command| {
|
||||
let state = CommandState::new().enabled(self.enabled(command));
|
||||
(command, match self.checked(command) {
|
||||
Some(on) => state.checked(on),
|
||||
None => state,
|
||||
})
|
||||
(
|
||||
command,
|
||||
match self.checked(command) {
|
||||
Some(on) => state.checked(on),
|
||||
None => state,
|
||||
},
|
||||
)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user