Skip to content

Commit 6f3bc7d

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent 76a596c commit 6f3bc7d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/tools/miri/tests/pass-dep/shims/mmap.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ fn test_mremap() {
155155

156156
// Test all of our error conditions
157157
// Not aligned
158-
let ptr =
159-
unsafe { libc::mremap(ptr::without_provenance_mut(1), page_size, page_size, libc::MREMAP_MAYMOVE) };
158+
let ptr = unsafe {
159+
libc::mremap(ptr::without_provenance_mut(1), page_size, page_size, libc::MREMAP_MAYMOVE)
160+
};
160161
assert_eq!(ptr, libc::MAP_FAILED);
161162
assert_eq!(Error::last_os_error().raw_os_error().unwrap(), libc::EINVAL);
162163

src/tools/miri/tests/pass/slices.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fn slice_of_zst() {
2929

3030
// In a slice of zero-size elements the pointer is meaningless.
3131
// Ensure iteration still works even if the pointer is at the end of the address space.
32-
let slice: &[()] = unsafe { slice::from_raw_parts(ptr::without_provenance(-5isize as usize), 10) };
32+
let slice: &[()] =
33+
unsafe { slice::from_raw_parts(ptr::without_provenance(-5isize as usize), 10) };
3334
assert_eq!(slice.len(), 10);
3435
assert_eq!(slice.iter().count(), 10);
3536

0 commit comments

Comments
 (0)