Make to_raw take self by value rather than reference

This commit is contained in:
Gwilym Kuiper 2021-06-05 21:49:36 +01:00
parent 54e28f5dd4
commit aa39b2b6ad

View file

@ -208,7 +208,7 @@ impl<I: FixedWidthUnsignedInteger, const N: usize> Num<I, N> {
Num(n) Num(n)
} }
pub fn to_raw(&self) -> I { pub fn to_raw(self) -> I {
self.0 self.0
} }