AssetCapacity derives PartialEq (float == semantics) but implements Ord using total_cmp, and also declares Eq. This violates the required consistency between Eq/Ord and equality (e.g., 0.0 == -0.0 but total_cmp orders them differently; NaN also breaks reflexivity). Consider implementing PartialEq/Eq manually to align with total_cmp (or drop Ord/Eq if total ordering isn’t required).
Originally posted by @Copilot in #1158 (comment)
AssetCapacityderivesPartialEq(float==semantics) but implementsOrdusingtotal_cmp, and also declaresEq. This violates the required consistency betweenEq/Ordand equality (e.g.,0.0 == -0.0buttotal_cmporders them differently; NaN also breaks reflexivity). Consider implementingPartialEq/Eqmanually to align withtotal_cmp(or dropOrd/Eqif total ordering isn’t required).Originally posted by @Copilot in #1158 (comment)