From f0dc93ac92a7a8d9a4bcca49cb3e15febcb633bf Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 1 May 2023 22:11:41 -0400 Subject: [PATCH] uefi: Switch Rng repr from C to transparent It shouldn't really make a difference here, but `repr(transparent)` is semantically clearer. --- uefi/src/proto/rng.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/src/proto/rng.rs b/uefi/src/proto/rng.rs index 0cf6e4986..331e99dfe 100644 --- a/uefi/src/proto/rng.rs +++ b/uefi/src/proto/rng.rs @@ -7,7 +7,7 @@ use core::{mem, ptr}; pub use uefi_raw::protocol::rng::RngAlgorithmType; /// Rng protocol -#[repr(C)] +#[repr(transparent)] #[unsafe_protocol(uefi_raw::protocol::rng::RngProtocol::GUID)] pub struct Rng(uefi_raw::protocol::rng::RngProtocol);