Browse Source

make it not unsafe

master
Jonathan Strong 4 years ago
parent
commit
3d8b7155fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/encoding.rs

+ 1
- 1
src/encoding.rs View File

@@ -206,7 +206,7 @@ impl<'a> PackedTradeData<'a> {
}

#[inline]
pub unsafe fn meta_i32(&self) -> i32 {
pub fn meta_i32(&self) -> i32 {
i32::from_le_bytes((&self.0[..4]).try_into().unwrap())
}



Loading…
Cancel
Save