From fa858620c6af5783dbd9f00937d385c6e2def69a Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 2 Feb 2022 02:08:21 +0000 Subject: [lints] Make clippy compliant + enforced Bug: 217415765 Test: build Change-Id: Ic4f33810349f44da8b683f32ada2c857b37eda82 --- src/rust/uci/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/rust/uci/mod.rs') diff --git a/src/rust/uci/mod.rs b/src/rust/uci/mod.rs index 0bb76b6..0a96118 100644 --- a/src/rust/uci/mod.rs +++ b/src/rust/uci/mod.rs @@ -332,9 +332,10 @@ impl Driver { self.event_manager.device_status_notification_received(response)?; } uci_hrcv::UciNotification::GenericError(response) => { - match (response.get_status(), self.response_channel.as_ref()) { - (StatusCode::UciStatusCommandRetry, Some((_, retryer))) => retryer.retry(), - _ => (), + if let (StatusCode::UciStatusCommandRetry, Some((_, retryer))) = + (response.get_status(), self.response_channel.as_ref()) + { + retryer.retry(); } self.event_manager.core_generic_error_notification_received(response)?; } @@ -416,7 +417,7 @@ impl Driver { } // Triggers the session init HAL API, if a new session is initialized. - async fn invoke_hal_session_init_if_necessary(&self, response: &SessionStatusNtfPacket) -> () { + async fn invoke_hal_session_init_if_necessary(&self, response: &SessionStatusNtfPacket) { let session_id = response.get_session_id().to_i32().expect("Failed converting session_id to u32"); if let SessionState::SessionStateInit = response.get_session_state() { -- cgit v1.2.3