We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1120657 + 0254d54 commit 1cdb46dCopy full SHA for 1cdb46d
bench-cargo-miri/mse/src/main.rs
@@ -10,7 +10,7 @@ fn main() {
10
}
11
12
fn read_i16(buffer: &[u8], index: usize) -> i16 {
13
- const SIZE: usize = std::mem::size_of::<i16>();
+ const SIZE: usize = size_of::<i16>();
14
let mut bytes: [u8; SIZE] = [0u8; SIZE];
15
bytes.copy_from_slice(&buffer[(index * SIZE)..(index * SIZE + SIZE)]);
16
unsafe { std::mem::transmute(bytes) }
0 commit comments