diff options
-rw-r--r-- | tvix/castore/build.rs | 1 | ||||
-rw-r--r-- | tvix/castore/src/proto/mod.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tvix/castore/build.rs b/tvix/castore/build.rs index 6424487b2112..089c093e71b4 100644 --- a/tvix/castore/build.rs +++ b/tvix/castore/build.rs @@ -15,6 +15,7 @@ fn main() -> Result<()> { // https://github.com/hyperium/tonic/issues/908 let mut config = prost_build::Config::new(); config.bytes(["."]); + config.type_attribute(".", "#[derive(Eq, Hash)]"); builder .build_server(true) diff --git a/tvix/castore/src/proto/mod.rs b/tvix/castore/src/proto/mod.rs index 59f5c1fdf3f6..97ef1835881e 100644 --- a/tvix/castore/src/proto/mod.rs +++ b/tvix/castore/src/proto/mod.rs @@ -1,4 +1,4 @@ -#![allow(clippy::derive_partial_eq_without_eq, non_snake_case)] +#![allow(non_snake_case)] // https://github.com/hyperium/tonic/issues/1056 use bstr::ByteSlice; use std::{collections::HashSet, iter::Peekable, str}; @@ -167,8 +167,6 @@ impl node::Node { } } -impl Eq for node::Node {} - impl PartialOrd for node::Node { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { Some(self.cmp(other)) |