misc: clippy: add semicolon_if_nothing_returned

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2025-11-18 12:26:21 +01:00
committed by Rob Bradford
parent ea4f07d3bf
commit b4c62bf159
64 changed files with 244 additions and 236 deletions

View File

@@ -228,7 +228,7 @@ impl VhostUserBackendMut for VhostUserNetBackend {
{
vring
.signal_used_queue()
.map_err(Error::FailedSignalingUsedQueue)?
.map_err(Error::FailedSignalingUsedQueue)?;
}
}
3 => {
@@ -240,7 +240,7 @@ impl VhostUserBackendMut for VhostUserNetBackend {
{
vring
.signal_used_queue()
.map_err(Error::FailedSignalingUsedQueue)?
.map_err(Error::FailedSignalingUsedQueue)?;
}
}
_ => return Err(Error::HandleEventUnknownEvent.into()),
@@ -406,7 +406,7 @@ pub fn start_net_backend(backend_command: &str) {
for thread in net_backend.read().unwrap().threads.iter() {
if let Err(e) = thread.lock().unwrap().kill_evt.write(1) {
error!("Error shutting down worker thread: {e:?}")
error!("Error shutting down worker thread: {e:?}");
}
}
}