Skip to content

Commit 520653b

Browse files
committed
uefi: Fix CI error
1 parent c6fbe33 commit 520653b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

uefi/src/proto/device_path/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

uefi/src/proto/pci/root_bridge/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use crate::proto::pci::root_bridge::region::PciMappedRegion;
1010
use crate::{Status, StatusExt};
1111
#[cfg(feature = "alloc")]
1212
use alloc::vec::Vec;
13-
#[cfg(feature = "alloc")]
1413
use core::ffi::c_void;
1514
use core::mem::MaybeUninit;
1615
use core::num::NonZeroUsize;

uefi/src/proto/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)