Skip to content

Commit 09bc5e3

Browse files
committed
rustfmt darnit
1 parent 40c6722 commit 09bc5e3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libstd/sys/wasi/fd.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
1414
assert_eq!(mem::size_of::<IoSliceMut<'_>>(), mem::size_of::<wasi::Iovec>());
1515
assert_eq!(mem::align_of::<IoSliceMut<'_>>(), mem::align_of::<wasi::Iovec>());
1616
// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
17-
unsafe {
18-
mem::transmute(a)
19-
}
17+
unsafe { mem::transmute(a) }
2018
}
2119

2220
fn ciovec<'a>(a: &'a [IoSlice<'_>]) -> &'a [wasi::Ciovec] {
2321
assert_eq!(mem::size_of::<IoSlice<'_>>(), mem::size_of::<wasi::Ciovec>());
2422
assert_eq!(mem::align_of::<IoSlice<'_>>(), mem::align_of::<wasi::Ciovec>());
2523
// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
26-
unsafe {
27-
mem::transmute(a)
28-
}
24+
unsafe { mem::transmute(a) }
2925
}
3026

3127
impl WasiFd {

0 commit comments

Comments
 (0)