Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Mircea <[email protected]>
  • Loading branch information
bobozaur committed Oct 18, 2023
1 parent 3e9c893 commit 63af9da
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 @@ -63,9 +63,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 63af9da

Please sign in to comment.