Marwes / schemafy

Crate for generating rust types from a json schema
MIT License
242 stars 51 forks source link

Clippy warning on missing `Eq` derive #61

Open bgilbert opened 2 years ago

bgilbert commented 2 years ago

Clippy 1.63.0 added a warning for types that derive PartialEq but not Eq, and could have derived Eq. As a result, many types generated by schemafy produce Clippy warnings:

warning: you are deriving `PartialEq` and can implement `Eq`
  --> src/mod.rs:18:1
   |
18 | / schemafy!(
19 | |     root: Config
20 | |     "schema.json"
21 | | );
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
   = note: this warning originates in the macro `schemafy` (in Nightly builds, run with -Z macro-backtrace for more info)