Skip to content

Commit cfa2fea

Browse files
Auto-format: cargo fmt --all
1 parent e71e7a8 commit cfa2fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/vm/src/stdlib/ctypes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ pub(crate) mod _ctypes {
291291
let val = if bytes.len() >= mem::size_of::<libc::uintptr_t>() {
292292
const UINTPTR_LEN: usize = mem::size_of::<libc::uintptr_t>();
293293
let mut arr = [0u8; UINTPTR_LEN];
294-
arr[..bytes.len().min(UINTPTR_LEN)].copy_from_slice(&bytes[..bytes.len().min(UINTPTR_LEN)]);
294+
arr[..bytes.len().min(UINTPTR_LEN)]
295+
.copy_from_slice(&bytes[..bytes.len().min(UINTPTR_LEN)]);
295296
usize::from_ne_bytes(arr)
296297
} else {
297298
0

0 commit comments

Comments
 (0)