Skip to content

Commit 4879daf

Browse files
committed
chore: update dependencies
1 parent ca44461 commit 4879daf

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ rust-version = "1.62"
1010
edition = "2021"
1111

1212
[dependencies]
13-
bitflags = "1.2"
13+
bitflags = "2.9.1"
1414

1515
[dev-dependencies]
16-
pretty_assertions = "0.6"
16+
pretty_assertions = "1.4.1"
1717

1818
[features]
1919
default = []

src/structures/002_baseboard.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl fmt::Display for BoardType {
7373

7474
bitflags! {
7575
/// The baseboard characteristic flags defined in the SMBIOS specification.
76+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
7677
pub struct BaseBoardFlags: u8 {
7778
const HOSTING = 0b0000_0001;
7879
const REQUIRES_DAUGHTER = 0b0000_0010;

src/structures/004_processor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ impl From<u8> for ProcessorType {
4141

4242
bitflags! {
4343
/// The processor status flags defined in the SMBIOS specification.
44+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4445
pub struct ProcessorStatus: u8 {
4546
const CPU_SOCKET_POPULATED = 0b0100_0000;
4647
const CPU_ENABLED = 0b0000_0001;
@@ -53,6 +54,7 @@ bitflags! {
5354

5455
bitflags! {
5556
/// The processor characteristic flags defined in the SMBIOS specification.
57+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
5658
pub struct ProcessorCharacteristics: u16 {
5759
const RESERVED = 0b0000_0001;
5860
const UNKNOWN = 0b0000_0010;
@@ -390,6 +392,7 @@ pub enum Voltage {
390392

391393
bitflags! {
392394
/// Voltage Capability. A set bit indicates that the voltage is supported
395+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
393396
pub struct VoltageLegacy: u8 {
394397
const VOLTAGE_CAPABILITY_5V0 = 0b0000_0001;
395398
const VOLTAGE_CAPABILITY_3V3 = 0b0000_0010;

src/structures/007_cache.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ pub enum CacheSize {
100100

101101
bitflags! {
102102
/// Cache SRAM Type is same for Supported SRAM Type and Current SRAM Type
103+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
103104
pub struct CacheSramType: u16 {
104105
const OTHER = 0b0000_0001;
105106
const UNKNOWN = 0b0000_0010;

src/structures/017_memory_device.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ impl From<u8> for Type {
255255

256256
bitflags! {
257257
/// The memory device details
258+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
258259
pub struct Detail: u16 {
259260
const RESERVED = 0b0000000000000000;
260261
const OTHER = 0b0000000000000010;
@@ -282,6 +283,7 @@ impl Default for Detail {
282283
}
283284

284285
bitflags! {
286+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
285287
pub struct OperatingModes: u16 {
286288
const RESERVED = 0b0000000000000000;
287289
const OTHER = 0b0000000000000010;

0 commit comments

Comments
 (0)