@rustlang If a type (enum) is #[repr(i32)] then #[derive(Eq)] and #[derive(Hash)] should just work, right?
-
-
error[E0277]: the trait bound `api::PoolHandle: std::cmp::PartialEq` is not satisfied | 21 | #[derive(Eq)] | ^^ can't compare `api::PoolHandle` with `api::PoolHandle` | = help: the trait `std::cmp::PartialEq` is not implemented for `api::PoolHandle`
-
Ah yes, so Eq requires PartialEq. You can derive it as well, so should be easy to fix!
- 1 more reply
New conversation -
-
-
BTW need toString too
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I checked-in the code that has this issue. https://github.com/AxelNennker/indy-sdk/tree/WalletHandleTypeSafety …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.