Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f0dc93a

Browse files
uefi: Switch Rng repr from C to transparent
It shouldn't really make a difference here, but `repr(transparent)` is semantically clearer.
1 parent 44bdca2 commit f0dc93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎uefi/src/proto/rng.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::{mem, ptr};
77
pub use uefi_raw::protocol::rng::RngAlgorithmType;
88

99
/// Rng protocol
10-
#[repr(C)]
10+
#[repr(transparent)]
1111
#[unsafe_protocol(uefi_raw::protocol::rng::RngProtocol::GUID)]
1212
pub struct Rng(uefi_raw::protocol::rng::RngProtocol);
1313

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /