osmosis-labs / osmosis-rust

Rust libraries for osmosis
Apache License 2.0
59 stars 52 forks source link

Generate derive Eq on prost-build #54

Closed iboss-ptk closed 1 year ago

iboss-ptk commented 1 year ago

Currently, generated code does not contain Eq and causes clippy warning. Fixing it with clippy is slow, which slows down the whole development and testing process thus create noises.

To fix this, on code generation, as we don't use any floats, we just replace PartialEq in #[derive(...)] with PartialEq, Eq if there is no Eq exist in the list.