diff --git a/messages/src/msg_types/registry.rs b/messages/src/msg_types/registry.rs index bdec49cfcc..d387f66d84 100644 --- a/messages/src/msg_types/registry.rs +++ b/messages/src/msg_types/registry.rs @@ -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! {