This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
data-pipelines
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
make it not unsafe
master
Jonathan Strong
4 years ago
parent
d802aab598
commit
3d8b7155fb
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/encoding.rs
+ 1
- 1
src/encoding.rs
View File
@@ -206,7 +206,7 @@ impl<'a> PackedTradeData<'a> {
}
}
#[inline]
#[inline]
pub
unsafe
fn meta_i32(&self) -> i32 {
pub fn meta_i32(&self) -> i32 {
i32::from_le_bytes((&self.0[..4]).try_into().unwrap())
i32::from_le_bytes((&self.0[..4]).try_into().unwrap())
}
}
Write
Preview
Loading…
Cancel
Save