Accounts with f64 values yield `the trait bound f64: std::cmp::Eq is not satisfied` in rust clients
kevinrodriguez-io opened this issue · 3 comments
kevinrodriguez-io commented
Rust intentionally does not implement Eq for float types, yet floats are supported by both borsh/anchor.
Is there a way to avoid rendering that derive trait when the accounts/structs include f64 values?
febo commented
This is a really good point. Currently there is no way manually specify the derive traits, but we should add one. I will have a look at it.
febo commented
@kevinrodriguez-io PR #242 added configuration options to customize the traits implemented by a type – this change is in the latest release of the Rust renderer package.
febo commented
Closing this as it should be fixed now – please reopen in case it is still an issue.