diff --git a/src/lib.rs b/src/lib.rs index 46abceb5..edd66430 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -222,9 +222,6 @@ extern crate std; #[macro_use] extern crate core as std; -#[cfg(all(uuid_unstable, feature = "zerocopy"))] -use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned}; - mod builder; mod error; mod non_nil; @@ -441,7 +438,7 @@ pub enum Variant { // NOTE: Also check `NonNilUuid` when ading new derives here #[cfg_attr( all(uuid_unstable, feature = "zerocopy"), - derive(IntoBytes, FromBytes, KnownLayout, Immutable, Unaligned) + derive(zerocopy::IntoBytes, zerocopy::FromBytes, zerocopy::KnownLayout, zerocopy::Immutable, zerocopy::Unaligned) )] #[cfg_attr( feature = "borsh", diff --git a/src/non_nil.rs b/src/non_nil.rs index 66bd0ba9..93826543 100644 --- a/src/non_nil.rs +++ b/src/non_nil.rs @@ -28,7 +28,7 @@ use crate::{ /// - [`Uuid::new_v8`] #[cfg_attr( all(uuid_unstable, feature = "zerocopy"), - derive(IntoBytes, FromBytes, KnownLayout, Immutable, Unaligned) + derive(zerocopy::IntoBytes, zerocopy::FromBytes, zerocopy::KnownLayout, zerocopy::Immutable, zerocopy::Unaligned) )] #[cfg_attr( feature = "borsh",