File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::io::Read;
1111use std:: iter:: FusedIterator ;
1212use std:: mem:: MaybeUninit ;
1313use std:: ops:: Deref ;
14- use std:: ptr:: { addr_of , addr_of_mut , NonNull } ;
14+ use std:: ptr:: NonNull ;
1515use std:: str:: FromStr ;
1616use std:: { mem, slice} ;
1717
@@ -143,7 +143,7 @@ impl<const N: usize> Buf<N> {
143143 } else {
144144 // TODO: replace by transpose when maybe_uninit_uninit_array_transpose stabilized.
145145 // https://github.com/rust-lang/rust/issues/96097
146- addr_of ! ( self . data. inline)
146+ ( & raw const self . data . inline )
147147 . cast :: < u8 > ( )
148148 . byte_sub ( Self :: INLINE_DATA_POS )
149149 }
@@ -158,7 +158,7 @@ impl<const N: usize> Buf<N> {
158158 } else {
159159 // TODO: replace by transpose when maybe_uninit_uninit_array_transpose stabilized.
160160 // https://github.com/rust-lang/rust/issues/96097
161- addr_of_mut ! ( self . data. inline)
161+ ( & raw mut self . data . inline )
162162 . cast :: < u8 > ( )
163163 . byte_sub ( Self :: INLINE_DATA_POS )
164164 }
You can’t perform that action at this time.
0 commit comments