Skip to content

Commit

Permalink
impl Trailer for ()
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Jun 18, 2024
1 parent 5211f4b commit 3396f96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down

0 comments on commit 3396f96

Please sign in to comment.