From 16693d91a0c25a74615596de1f1cf0395dfa45ed Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Sat, 4 Jan 2025 20:18:59 -0500 Subject: [PATCH] mark zero trait unsafe --- sub/core/src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/core/src/data.rs b/sub/core/src/data.rs index 2563e81..86c08eb 100644 --- a/sub/core/src/data.rs +++ b/sub/core/src/data.rs @@ -46,7 +46,7 @@ pub fn distance(p1: impl As, p2: impl As) -> usize { } } -pub trait Zeroed: Sized { +pub unsafe trait Zeroed: Sized { #[inline(always)] fn zeroed() -> Self { unsafe { core::mem::zeroed() } } } \ No newline at end of file