frame-support: `RuntimeDebug\Eq\PartialEq` impls for `Imbalance` (#1717)
Derive `RuntimeDebug\Eq\PartialEq` but do not bound any generics. This achieved by using their equivalent no bound versions: `EqNoBound\PartialEqNoBound\RuntimeDebugNoBound`. Deriving with `Debug`, `Eq`, and `PartialEq` for the `Debt` and `Credit` type aliases of `Imbalance` is not feasible due to the `OnDrop` and `OppositeOnDrop` generic types lacking implementations of the same traits. This absence posed challenges in testing and any scenarios that demanded the traits implementations for the type.
Showing
- substrate/frame/support/src/traits/tokens/fungible/imbalance.rs 3 additions, 2 deletions...ate/frame/support/src/traits/tokens/fungible/imbalance.rs
- substrate/frame/support/src/traits/tokens/fungibles/imbalance.rs 3 additions, 2 deletions...te/frame/support/src/traits/tokens/fungibles/imbalance.rs
Please register or sign in to comment