diff options
author | Matthew Maurer <mmaurer@google.com> | 2022-02-02 02:08:21 +0000 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2022-02-02 02:08:21 +0000 |
commit | fa858620c6af5783dbd9f00937d385c6e2def69a (patch) | |
tree | ac45e293fd3dd2143df550537ffdb84ffc9dfa41 /src/rust/uci/mod.rs | |
parent | a35432f396f55d301eddde9e17eb0fb3a12e23aa (diff) | |
download | uwb-fa858620c6af5783dbd9f00937d385c6e2def69a.tar.gz |
[lints] Make clippy compliant + enforced
Bug: 217415765
Test: build
Change-Id: Ic4f33810349f44da8b683f32ada2c857b37eda82
Diffstat (limited to 'src/rust/uci/mod.rs')
-rw-r--r-- | src/rust/uci/mod.rs | 9 |
1 files changed, 5 insertions, 4 deletions
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<T: EventManager> Driver<T> { 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<T: EventManager> Driver<T> { } // 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() { |