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.
1 parent 1d7cd1e commit 2ff1050Copy full SHA for 2ff1050
src/tools/miri/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