Fix clippy::derive_partial_eq_without_eq in generated prost test code (#4927)
This commit is contained in:
parent
e5993afc0c
commit
5b3422c4a3
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue