File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 30
30
///
31
31
/// Usage example:
32
32
/// ```
33
+ /// use uefi::newtype_enum;
33
34
/// newtype_enum! {
34
- /// #[derive(Cmp, PartialCmp )]
35
+ /// #[derive(Ord, PartialOrd )]
35
36
/// pub enum UnixBool: i32 => #[allow(missing_docs)] {
36
37
/// FALSE = 0,
37
38
/// TRUE = 1,
Original file line number Diff line number Diff line change @@ -97,8 +97,9 @@ impl fmt::Display for Guid {
97
97
/// textual format as an argument, and is used in the following way:
98
98
///
99
99
/// ```
100
+ /// use uefi::unsafe_guid;
100
101
/// #[unsafe_guid("12345678-9abc-def0-1234-56789abcdef0")]
101
- /// type Emptiness = () ;
102
+ /// struct Emptiness;
102
103
/// ```
103
104
pub unsafe trait Identify {
104
105
/// Unique protocol identifier.
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ use crate::Identify;
18
18
/// protocol's GUID using the following syntax:
19
19
///
20
20
/// ```
21
+ /// #![feature(negative_impls)]
22
+ /// use uefi::{proto::Protocol, unsafe_guid};
21
23
/// #[unsafe_guid("12345678-9abc-def0-1234-56789abcdef0")]
22
24
/// #[derive(Protocol)]
23
25
/// struct DummyProtocol {}
You can’t perform that action at this time.
0 commit comments