From 38661b3a68ffa89a2fc63a74d3691d6bf4a79603 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 15 Jan 2025 04:15:41 -0800 Subject: [PATCH] fixed_wide: another derivable trait --- lib/fixed_wide/src/fixed.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fixed_wide/src/fixed.rs b/lib/fixed_wide/src/fixed.rs index 0426805..8cb266e 100644 --- a/lib/fixed_wide/src/fixed.rs +++ b/lib/fixed_wide/src/fixed.rs @@ -1,6 +1,6 @@ use bnum::{BInt,cast::As}; -#[derive(Clone,Copy,Debug,Default,Hash,PartialEq,PartialOrd,Ord)] +#[derive(Clone,Copy,Debug,Default,Hash,PartialEq,Eq,PartialOrd,Ord)] /// A Fixed point number for which multiply operations widen the bits in the output. (when the wide-mul feature is enabled) /// N is the number of u64s to use /// F is the number of fractional bits (always N*32 lol) @@ -97,7 +97,6 @@ where self.bits.eq(&other.into()) } } -impl Eq for Fixed{} impl PartialOrd for Fixed where