mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
warning: unneeded `return` statement
--> pci/src/vfio_user.rs:627:13
|
627 | / return Err(std::io::Error::new(
628 | | std::io::ErrorKind::Other,
629 | | format!("Region not found for 0x{:x}", gpa),
630 | | ));
| |_______________^
|
= note: `#[warn(clippy::needless_return)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
627 ~ Err(std::io::Error::new(
628 + std::io::ErrorKind::Other,
629 + format!("Region not found for 0x{:x}", gpa),
630 + ))
|
Signed-off-by: Rob Bradford <robert.bradford@intel.com>