Fix Rust 2021 clippy
This commit is contained in:
parent
eca605bf01
commit
28c5e59fb2
@ -138,6 +138,12 @@ impl QemuEdgeCoverageHelper {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for QemuEdgeCoverageHelper {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<I, S> QemuHelper<I, S> for QemuEdgeCoverageHelper
|
||||
where
|
||||
I: Input,
|
||||
@ -177,6 +183,12 @@ impl QemuCmpLogHelper {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for QemuCmpLogHelper {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<I, S> QemuHelper<I, S> for QemuCmpLogHelper
|
||||
where
|
||||
I: Input,
|
||||
@ -292,6 +304,12 @@ impl QemuSnapshotHelper {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for QemuSnapshotHelper {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<I, S> QemuHelper<I, S> for QemuSnapshotHelper
|
||||
where
|
||||
I: Input,
|
||||
|
@ -9,6 +9,8 @@ pub static mut COUNTERS_MAPS: Vec<&'static mut [u8]> = Vec::new();
|
||||
/// # Safety
|
||||
/// Set up our coverage maps.
|
||||
#[no_mangle]
|
||||
#[allow(clippy::cast_sign_loss)]
|
||||
#[allow(clippy::not_unsafe_ptr_arg_deref)]
|
||||
pub fn __sanitizer_cov_8bit_counters_init(start: *mut u8, stop: *mut u8) {
|
||||
unsafe { COUNTERS_MAPS.push(from_raw_parts_mut(start, stop.offset_from(start) as usize)) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user