File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,11 @@ const ERROR_BIT: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1);
7
7
newtype_enum ! {
8
8
/// UEFI uses status codes in order to report successes, errors, and warnings.
9
9
///
10
- /// Unfortunately, the spec allows and encourages implementation-specific
11
- /// non-portable status codes. Therefore, these cannot be modeled as a Rust
12
- /// enum, as injecting an unknown value in a Rust enum is undefined behaviour.
10
+ /// The spec allows implementation-specific status codes, so the `Status`
11
+ /// constants are not a comprehensive list of all possible values.
13
12
///
14
- /// For lack of a better option, we therefore model them as a newtype of usize.
15
- ///
16
- /// For a convenient integration into the Rust ecosystem, there are multiple
17
- /// factory methods to convert a Status into a [`uefi::Result`]:
13
+ /// For a convenient integration into the Rust ecosystem, there are several
14
+ /// methods to convert a Status into a [`uefi::Result`]:
18
15
/// - [`Status::into_with`]
19
16
/// - [`Status::into_with_val`]
20
17
/// - [`Status::into_with_err`]
You can’t perform that action at this time.
0 commit comments