mark zero trait unsafe
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn distance(p1: impl As<usize>, p2: impl As<usize>) -> usize {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Zeroed: Sized {
|
pub unsafe trait Zeroed: Sized {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn zeroed() -> Self { unsafe { core::mem::zeroed() } }
|
fn zeroed() -> Self { unsafe { core::mem::zeroed() } }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user