From d4fde533861667477eb8d46ea795303ca83496dc Mon Sep 17 00:00:00 2001 From: Lokathor Date: Fri, 20 Sep 2019 11:10:01 -0600 Subject: [PATCH] Update src/zeroable.rs Co-Authored-By: Daniel Henry-Mantilla --- src/zeroable.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zeroable.rs b/src/zeroable.rs index a5b24b1..2252f8e 100644 --- a/src/zeroable.rs +++ b/src/zeroable.rs @@ -14,6 +14,7 @@ pub unsafe trait Zeroable: Sized { /// This is a trait method so that you can write `MyType::zeroed()` in your /// code. It is a contract of this trait that if you implement it on your type /// you **must not** override this method. + #[inline] fn zeroed() -> Self { unsafe { core::mem::zeroed() } }