Fix latest Clippy for good (#1418)
* More Clippy * More clippy * More ignore
This commit is contained in:
parent
b02592c5c7
commit
dcdfa978a4
@ -11,6 +11,7 @@ pub mod launcher;
|
||||
#[allow(clippy::ignored_unit_patterns)]
|
||||
pub mod llmp;
|
||||
#[cfg(feature = "tcp_manager")]
|
||||
#[allow(clippy::ignored_unit_patterns)]
|
||||
pub mod tcp;
|
||||
use alloc::{boxed::Box, string::String, vec::Vec};
|
||||
#[cfg(all(unix, feature = "std"))]
|
||||
|
@ -1050,7 +1050,7 @@ impl Emulator {
|
||||
perms: MmapPerms,
|
||||
) -> Result<GuestAddr, String> {
|
||||
self.mmap(addr, size, perms, libc::MAP_PRIVATE | libc::MAP_ANONYMOUS)
|
||||
.map_err(|_| format!("Failed to map {addr}"))
|
||||
.map_err(|()| format!("Failed to map {addr}"))
|
||||
.map(|addr| addr as GuestAddr)
|
||||
}
|
||||
|
||||
@ -1067,7 +1067,7 @@ impl Emulator {
|
||||
perms,
|
||||
libc::MAP_FIXED | libc::MAP_PRIVATE | libc::MAP_ANONYMOUS,
|
||||
)
|
||||
.map_err(|_| format!("Failed to map {addr}"))
|
||||
.map_err(|()| format!("Failed to map {addr}"))
|
||||
.map(|addr| addr as GuestAddr)
|
||||
}
|
||||
|
||||
|
@ -58,15 +58,18 @@
|
||||
)
|
||||
)]
|
||||
|
||||
#[allow(clippy::ignored_unit_patterns)]
|
||||
pub mod inmemory;
|
||||
pub use inmemory::InMemoryBytesCoverageSugar;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[allow(clippy::ignored_unit_patterns)]
|
||||
pub mod qemu;
|
||||
#[cfg(target_os = "linux")]
|
||||
pub use qemu::QemuBytesCoverageSugar;
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
#[allow(clippy::ignored_unit_patterns)]
|
||||
pub mod forkserver;
|
||||
#[cfg(target_family = "unix")]
|
||||
pub use forkserver::ForkserverBytesCoverageSugar;
|
||||
|
Loading…
x
Reference in New Issue
Block a user