From 5b3422c4a33ffeff077c4c9954093ad5e2edc6da Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 23 Aug 2022 09:31:04 +1000 Subject: [PATCH] Fix clippy::derive_partial_eq_without_eq in generated prost test code (#4927) --- zebrad/build.rs | 4 ++++ 1 file changed, 4 insertions(+) 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"],