From 63af9dacb2d0cc028f0fbf0150b399f1ef1666e3 Mon Sep 17 00:00:00 2001 From: Bogdan Mircea Date: Wed, 18 Oct 2023 11:41:54 +0300 Subject: [PATCH] Fixed lint Signed-off-by: Bogdan Mircea --- messages/src/msg_types/registry.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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! {