File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ impl DevicePath {
564564 /// Cast to a [`FfiDevicePath`] pointer.
565565 #[ must_use]
566566 pub const fn as_ffi_ptr ( & self ) -> * const FfiDevicePath {
567- let p = self as * const Self ;
567+ let p = & raw const * self ;
568568 p. cast ( )
569569 }
570570
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use crate::proto::pci::root_bridge::region::PciMappedRegion;
1010use crate :: { Status , StatusExt } ;
1111#[ cfg( feature = "alloc" ) ]
1212use alloc:: vec:: Vec ;
13- #[ cfg( feature = "alloc" ) ]
1413use core:: ffi:: c_void;
1514use core:: mem:: MaybeUninit ;
1615use core:: num:: NonZeroUsize ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl Rng {
5252
5353 let algo = match algorithm. as_ref ( ) {
5454 None => ptr:: null ( ) ,
55- Some ( algo) => algo as * const RngAlgorithmType ,
55+ Some ( algo) => & raw const * algo ,
5656 } ;
5757
5858 unsafe {
You can’t perform that action at this time.
0 commit comments