Skip to content

Commit cfb68b3

Browse files
Make Revision repr(transparent)
1 parent 7fc985f commit cfb68b3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Changed `SystemTable::firmware_revision` to return a `u32` instead of
1818
a `Revision`. The firmware revision's format is vendor specific and
1919
may not have the same semantics as the UEFI revision.
20+
- Changed `Revision` to `repr(transparent)`.
2021

2122
## uefi-macros - [Unreleased]
2223

src/table/revision.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use core::fmt;
77
/// The minor revision number is incremented on minor changes,
88
/// it is stored as a two-digit binary-coded decimal.
99
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
10+
#[repr(transparent)]
1011
pub struct Revision(u32);
1112

1213
// Allow missing docs, there's nothing useful to document about these

0 commit comments

Comments
 (0)