From 0160334492b1b3bd87779cdada8455a06e0fb5f1 Mon Sep 17 00:00:00 2001 From: Austin Gill Date: Mon, 6 Nov 2023 20:12:14 -0600 Subject: [PATCH] clippy: Fix unwrap-or-default lint I suspect this lint was added to clippy since we last merged to main, and that the CI/CD pipeline uses the latest clippy release. --- src/network_management/network_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network_management/network_manager.rs b/src/network_management/network_manager.rs index 7314bd1..764e08d 100644 --- a/src/network_management/network_manager.rs +++ b/src/network_management/network_manager.rs @@ -158,7 +158,7 @@ impl NetworkManager { self.get_control_function_address_by_name(destination.get_name()), priority, ) - .unwrap_or(CanId::default()); + .unwrap_or_default(); if message_id.raw() != CanId::default().raw() { self.enqueue_can_message(