File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub struct WasiFd {
13
13
fn iovec < ' a > ( a : & ' a mut [ IoSliceMut < ' _ > ] ) -> & ' a [ wasi:: Iovec ] {
14
14
assert_eq ! ( mem:: size_of:: <IoSliceMut <' _>>( ) , mem:: size_of:: <wasi:: Iovec >( ) ) ;
15
15
assert_eq ! ( mem:: align_of:: <IoSliceMut <' _>>( ) , mem:: align_of:: <wasi:: Iovec >( ) ) ;
16
- /// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
16
+ // SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
17
17
unsafe {
18
18
mem:: transmute ( a)
19
19
}
@@ -22,7 +22,7 @@ fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
22
22
fn ciovec < ' a > ( a : & ' a [ IoSlice < ' _ > ] ) -> & ' a [ wasi:: Ciovec ] {
23
23
assert_eq ! ( mem:: size_of:: <IoSlice <' _>>( ) , mem:: size_of:: <wasi:: Ciovec >( ) ) ;
24
24
assert_eq ! ( mem:: align_of:: <IoSlice <' _>>( ) , mem:: align_of:: <wasi:: Ciovec >( ) ) ;
25
- /// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
25
+ // SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
26
26
unsafe {
27
27
mem:: transmute ( a)
28
28
}
You can’t perform that action at this time.
0 commit comments