From 6a7eaeb03bc637bc746ceba91438d4636749edf7 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Sat, 11 Aug 2018 20:26:57 +0200 Subject: [PATCH] fix Assign* impls that were not doing anything --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dd58f1a..8a3d97d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -212,7 +212,7 @@ macro_rules! pass_assign { impl $Imp<$Fixed> for $Fixed { #[inline] fn $method(&mut self, rhs: $Fixed) { - <$Inner as $Imp<$Inner>>::$method(&mut self.to_bits(), rhs.to_bits()); + <$Inner as $Imp<$Inner>>::$method(&mut (self.0).0, rhs.to_bits()); } } @@ -315,7 +315,7 @@ macro_rules! shift_assign { impl $Imp<$Rhs> for $Fixed { #[inline] fn $method(&mut self, rhs: $Rhs) { - <$Inner as $Imp<$Rhs>>::$method(&mut self.to_bits(), rhs); + <$Inner as $Imp<$Rhs>>::$method(&mut (self.0).0, rhs); } }