From a1ab898a9bfed407cd005e6655529a6577fb0371 Mon Sep 17 00:00:00 2001 From: Beta Date: Sun, 3 Mar 2024 03:02:47 +0000 Subject: [PATCH] Fix no-std --- prost-types/src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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) {