diff --git a/prost-types/src/lib.rs b/prost-types/src/lib.rs index f41dac750..f92947fb1 100644 --- a/prost-types/src/lib.rs +++ b/prost-types/src/lib.rs @@ -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) {