mark zero trait unsafe
This commit is contained in:
1 parent
1951224107
commit
16693d91a0
1 file changed
+1
-1
@@ -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)]
|
||||
fn zeroed() -> Self { unsafe { core::mem::zeroed() } }
|
||||
}
|
||||
Reference in new issue
Block a user