Skip to content

Commit a1ab898

Browse files
committed
Fix no-std
1 parent 6eb00b3 commit a1ab898

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prost-types/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ impl std::hash::Hash for Timestamp {
395395
}
396396
}
397397

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

0 commit comments

Comments
 (0)