Unverified Commit 7d4f8296 authored by Muharem Ismailov's avatar Muharem Ismailov Committed by GitHub
Browse files

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.
parent 9485b0b4
Pipeline #396118 failed with stages
in 1 hour, 33 minutes, and 7 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment