Get implementation of AddAssign correct

This commit is contained in:
Gwilym Kuiper 2021-06-05 15:58:56 +01:00
parent 0b8eda336d
commit 0099dfa688

View file

@ -27,7 +27,7 @@ where
T: Into<Num<N>>,
{
fn add_assign(&mut self, rhs: T) {
self.0 += (*self + rhs.into()).0
self.0 = (*self + rhs.into()).0
}
}