Skip to content

Commit

Permalink
Fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
darconeous committed Aug 2, 2023
1 parent ba03977 commit 209517b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tool_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ impl KeyMap {
) -> Option<&mut KeyMap> {
let mut iter = iter.into_iter();
if let Some(label) = iter.next() {
let keymap = self
.children
.entry(label.to_string())
.or_default();
let keymap = self.children.entry(label.to_string()).or_default();
keymap.update_from_iter(iter)
} else {
Some(self)
Expand Down

0 comments on commit 209517b

Please sign in to comment.