Skip to content

Commit

Permalink
clippy: Fix unwrap-or-default lint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Notgnoshi committed Jan 27, 2024
1 parent 08feb15 commit e33b174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network_management/network_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e33b174

Please sign in to comment.