Skip to content

Commit

Permalink
fix up a clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Oct 17, 2023
1 parent 52b3fbc commit 0c5b2df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,9 @@ impl Timestamp {

#[cfg(any(feature = "v1", feature = "v6"))]
const fn unix_to_rfc4122_ticks(seconds: u64, nanos: u32) -> u64 {
let ticks = UUID_TICKS_BETWEEN_EPOCHS
UUID_TICKS_BETWEEN_EPOCHS
.wrapping_add(seconds.wrapping_mul(10_000_000))
.wrapping_add(nanos as u64 / 100);

ticks
.wrapping_add(nanos as u64 / 100)
}

const fn rfc4122_to_unix(ticks: u64) -> (u64, u32) {
Expand Down

0 comments on commit 0c5b2df

Please sign in to comment.