Fix clippy::derive_partial_eq_without_eq in generated prost test code (#4927)

This commit is contained in:
teor 2022-08-23 09:31:04 +10:00 committed by GitHub
parent e5993afc0c
commit 5b3422c4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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"],