We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456fac3 commit bec0c1cCopy full SHA for bec0c1c
src/bin/uname.rs
@@ -8,16 +8,16 @@ use sap::{
8
};
9
10
bitflags::bitflags! {
11
- #[derive(Debug)]
+ #[rustfmt::skip]
12
pub struct Info: u8 {
13
- const KERNEL_NAME = 0b00000001;
14
- const NODENAME = 0b00000010;
15
- const KERNEL_RELEASE = 0b00000100;
16
- const KERNEL_VERSION = 0b00001000;
17
- const MACHINE = 0b00010000;
18
- const PROCESSOR = 0b00100000;
19
- const HARDWARE_PLATFORM = 0b01000000;
20
- const OPERATING_SYSTEM = 0b10000000;
+ const KERNEL_NAME = 1 << 0;
+ const NODENAME = 1 << 1;
+ const KERNEL_RELEASE = 1 << 2;
+ const KERNEL_VERSION = 1 << 3;
+ const MACHINE = 1 << 4;
+ const PROCESSOR = 1 << 5;
+ const HARDWARE_PLATFORM = 1 << 6;
+ const OPERATING_SYSTEM = 1 << 7;
21
}
22
23
0 commit comments