Skip to content

Commit 7b627f9

Browse files
author
Paolo Borelli
committed
Switch to bitflags 2
1 parent 836ffab commit 7b627f9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pcsc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ rust-version = "1.38"
1414
edition = "2018"
1515

1616
[dependencies]
17-
bitflags = "1.2.1"
17+
bitflags = "2.6.0"
1818
pcsc-sys = { version = "1.2.0", path = "../pcsc-sys" }

pcsc/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const DUMMY_DWORD: DWORD = 0xdead_beef;
124124

125125
bitflags! {
126126
/// A mask of the state a card reader.
127+
#[derive(Debug)]
127128
pub struct State: DWORD {
128129
const UNAWARE = ffi::SCARD_STATE_UNAWARE;
129130
const IGNORE = ffi::SCARD_STATE_IGNORE;
@@ -148,6 +149,7 @@ bitflags! {
148149
/// On Windows, Status always has exactly one bit set, and the bit values do
149150
/// not correspond to underlying PC/SC constants. This allows Status to be
150151
/// used in the same way across all platforms.
152+
#[derive(Debug)]
151153
pub struct Status: DWORD {
152154
const UNKNOWN = {
153155
#[cfg(not(target_os = "windows"))] { ffi::SCARD_UNKNOWN }
@@ -239,6 +241,7 @@ impl Protocol {
239241

240242
bitflags! {
241243
/// A mask of possible communication protocols.
244+
#[derive(Debug)]
242245
pub struct Protocols: DWORD {
243246
const UNDEFINED = ffi::SCARD_PROTOCOL_UNDEFINED;
244247
const T0 = ffi::SCARD_PROTOCOL_T0;

0 commit comments

Comments
 (0)