Skip to content

Commit

Permalink
fix up zerocopy derives
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 14, 2025
1 parent f570b57 commit 4021daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/non_nil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4021daa

Please sign in to comment.