diff --git a/Cargo.toml b/Cargo.toml index 98b98c8e..3e179469 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "skl" -version = "0.11.0" +version = "0.11.1" edition = "2021" rust-version = "1.56.0" repository = "https://github.com/al8n/skl" diff --git a/src/lib.rs b/src/lib.rs index c27bdd6e..bfd82d8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,6 +154,14 @@ unsafe impl Trailer for u64 { } } +unsafe impl Trailer for () { + /// Returns the version of the trailer. + #[inline] + fn version(&self) -> u64 { + 0 + } +} + mod sync { #[cfg(not(feature = "loom"))] pub(crate) use core::sync::atomic::*;