From cd07f36f8d6886d61128e91a5d0736814e86bb76 Mon Sep 17 00:00:00 2001 From: zachs18 <8355914+zachs18@users.noreply.github.com> Date: Wed, 25 May 2022 00:39:39 -0500 Subject: [PATCH] Remove unsound `impl Bytes for bool` and `char` `bool` and `char` are not able to have any arbitrary bit-pattern, so they should not implement `Bytes`. fixes #100 --- src/traits.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index 39b619a..564b05a 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -66,9 +66,6 @@ pub use constant_eq::ConstantEq; pub use randomizable::Randomizable; pub use zeroable::Zeroable; -unsafe impl Bytes for bool {} -unsafe impl Bytes for char {} - unsafe impl Bytes for i8 {} unsafe impl Bytes for i16 {} unsafe impl Bytes for i32 {}