mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
virtio-devices: Call closure directly rather than indirect
As identified by the new beta clippy. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4ae8ee2376
commit
48d4ccbfeb
@ -44,7 +44,7 @@ where
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::panic::catch_unwind(AssertUnwindSafe(move || f()))
|
std::panic::catch_unwind(AssertUnwindSafe(f))
|
||||||
.or_else(|_| {
|
.or_else(|_| {
|
||||||
error!("{} thread panicked", thread_name);
|
error!("{} thread panicked", thread_name);
|
||||||
thread_exit_evt.write(1)
|
thread_exit_evt.write(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user