Skip to content

Commit

Permalink
feat: derive Ord on UnixTime
Browse files Browse the repository at this point in the history
  • Loading branch information
devanlai authored and djc committed Sep 23, 2024
1 parent bd6a082 commit 101bc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ impl Deref for AlgorithmIdentifier {
/// A timestamp, tracking the number of non-leap seconds since the Unix epoch.
///
/// The Unix epoch is defined January 1, 1970 00:00:00 UTC.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct UnixTime(u64);

impl UnixTime {
Expand Down

0 comments on commit 101bc6a

Please sign in to comment.