diff --git a/zebrad/build.rs b/zebrad/build.rs index 20138ba8..62560642 100644 --- a/zebrad/build.rs +++ b/zebrad/build.rs @@ -60,6 +60,10 @@ fn main() { tonic_build::configure() .build_client(true) .build_server(false) + // The lightwalletd gRPC types don't use floats or complex collections, + // so we can derive `Eq` as well as the default generated `PartialEq` derive. + // This fixes `clippy::derive_partial_eq_without_eq` warnings. + .type_attribute(".", "#[derive(Eq)]") .compile( &["tests/common/lightwalletd/proto/service.proto"], &["tests/common/lightwalletd/proto"],