After updating to rust 1.63.0 clippy shows following warning:
warning: you are deriving `PartialEq` and can implement `Eq`
|
1452 | #[derive(Clone, PartialEq, ::prost::Message)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
If a type T derives PartialEq and all of its members implement Eq, then T can always implement Eq. Implementing Eq allows T to be used in APIs that require Eq types. It also allows structs containing T to derive Eq themselves.
Bug Report
Version
Platform
Linux 5.18.17-200.fc36.x86_64
Crates
tonic-build
Description
After updating to rust 1.63.0 clippy shows following warning:
From https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq:
I'm using following build code in my build.rs:
And this is the relevant Cargo.toml section: