Skip to content

Commit

Permalink
chore: clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Oct 18, 2023
1 parent 67cee69 commit 50cba2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions messages/src/msg_types/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ fn map_insert(
roles,
};

map.entry((protocol_name, major))
.or_insert(Vec::new())
.push(entry);
map.entry((protocol_name, major)).or_default().push(entry);
}

lazy_static! {
Expand Down

0 comments on commit 50cba2b

Please sign in to comment.