Skip to content

Commit

Permalink
Fix no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
LevBeta committed Mar 3, 2024
1 parent 6eb00b3 commit a1ab898
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ impl std::hash::Hash for Timestamp {
}
}

#[cfg(feature = "std")]
impl Ord for Timestamp {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
match self.seconds.cmp(&other.seconds) {
Expand Down

0 comments on commit a1ab898

Please sign in to comment.