Skip to content

Commit ec46541

Browse files
committed
binding: add debug to certain flagsets
necessary to fix building with bitflags 2.x (or at least 2.9)
1 parent 09087bd commit ec46541

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pulse-binding/src/def.rs

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ impl AsRef<capi::pa_spawn_api> for SpawnApi {
299299

300300
bitflags! {
301301
/// Set of sink flags.
302+
#[derive(Debug)]
302303
#[repr(transparent)]
303304
pub struct SinkFlagSet: u32 {
304305
/// Flag to pass when no specific options are needed.
@@ -453,6 +454,7 @@ impl SinkState {
453454

454455
bitflags! {
455456
/// Set of source flags.
457+
#[derive(Debug)]
456458
#[repr(transparent)]
457459
pub struct SourceFlagSet: u32 {
458460
/// Flag to pass when no specific options are needed.

pulse-binding/src/direction.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use bitflags::bitflags;
1919

2020
bitflags! {
2121
/// Flag set.
22+
#[derive(Debug)]
2223
#[repr(transparent)]
2324
pub struct FlagSet: i32 {
2425
/// Output flag.

0 commit comments

Comments
 (0)