deconstruct array instead of indexing
This commit is contained in:
parent
c6b4cc29b8
commit
46bb2bac4e
@ -65,7 +65,8 @@ impl<const F:usize> Fixed<1,F>{
|
||||
}
|
||||
#[inline]
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user