Skip to content

Commit b706c76

Browse files
authored
Merge pull request #33 from mkroening/bitflags-update
build(deps): update bitflags dependency to version 2
2 parents 378d468 + 2e48d1b commit b706c76

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/rust-osdev/uart_16550"
88
edition = "2018"
99

1010
[dependencies]
11-
bitflags = "1.1.0"
11+
bitflags = "2"
1212
rustversion = "1.0.5"
1313

1414
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- Update bitflags dependency to version 2 ([#33](https://github.com/rust-osdev/uart_16550/pull/33))
4+
35
# 0.3.0 – 2023-08-04
46

57
- Internal rewrite of port operations to work on both `x86` and `x86_64` ([#29](https://github.com/rust-osdev/uart_16550/pull/29))

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ pub use crate::port::SerialPort;
8484

8585
bitflags! {
8686
/// Interrupt enable flags
87+
#[repr(transparent)]
88+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
8789
struct IntEnFlags: u8 {
8890
const RECEIVED = 1;
8991
const SENT = 1 << 1;
@@ -95,6 +97,8 @@ bitflags! {
9597

9698
bitflags! {
9799
/// Line status flags
100+
#[repr(transparent)]
101+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
98102
struct LineStsFlags: u8 {
99103
const INPUT_FULL = 1;
100104
// 1 to 4 unknown

0 commit comments

Comments
 (0)