deconstruct array instead of indexing

This commit is contained in:
Quaternions 2024-09-30 17:08:12 -07:00
parent c6b4cc29b8
commit 46bb2bac4e

View File

@ -65,7 +65,8 @@ impl<const F:usize> Fixed<1,F>{
} }
#[inline] #[inline]
pub const fn to_raw(self)->i64{ pub const fn to_raw(self)->i64{
self.to_bits().to_bits().digits()[0] as i64 let &[digit]=self.to_bits().to_bits().digits();
digit as i64
} }
} }