Skip to content

Commit 6c5099e

Browse files
committed
also remove borsh from NonNilUuid for now
1 parent b12c690 commit 6c5099e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/non_nil.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{
99
Uuid,
1010
};
1111

12-
/// A UUID that is guaranteed not to be the nil UUID.
12+
/// A UUID that is guaranteed not to be the [nil UUID](https://www.ietf.org/rfc/rfc9562.html#name-nil-uuid).
1313
///
1414
/// This is useful for representing optional UUIDs more efficiently, as `Option<NonNilUuid>`
1515
/// takes up the same space as `Uuid`.
@@ -30,11 +30,8 @@ use crate::{
3030
/// # ABI
3131
///
3232
/// The `NonNilUuid` type does not yet have a stable ABI. Its representation or alignment
33-
/// may change.
34-
#[cfg_attr(
35-
feature = "borsh",
36-
derive(borsh_derive::BorshDeserialize, borsh_derive::BorshSerialize)
37-
)]
33+
/// may change. It is currently only guaranteed that `NonNilUuid` and `Option<NonNilUuid>`
34+
/// are the same size as `Uuid`.
3835
#[repr(transparent)]
3936
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
4037
pub struct NonNilUuid(NonZeroU128);

0 commit comments

Comments
 (0)