Skip to content

Commit

Permalink
chore: Derive Clone and Default on Sinks Sources etc
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Nov 14, 2023
1 parent 74c0790 commit 116c496
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/audio/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use pulse::context::introspect::{SinkInfo, SinkInputInfo, SourceInfo, SourceOutp
#[derive(Debug)]
pub struct PulseError(pub &'static str);

#[derive(Debug, Clone, Default)]
pub struct Source {
pub index: u32,
pub name: String,
Expand Down Expand Up @@ -85,7 +86,7 @@ impl From<&SourceInfo<'_>> for Source {
}
}

#[derive(Debug)]
#[derive(Debug, Clone, Default)]
pub struct Sink {
pub index: u32,
pub name: String,
Expand Down Expand Up @@ -164,6 +165,7 @@ impl From<&SinkInfo<'_>> for Sink {
}
}

#[derive(Debug, Clone, Default)]
pub struct InputStream {
pub index: u32,
pub name: String,
Expand Down Expand Up @@ -244,6 +246,7 @@ impl From<&SinkInputInfo<'_>> for InputStream {
}
}

#[derive(Debug, Clone, Default)]
pub struct OutputStream {
pub index: u32,
pub name: String,
Expand Down

0 comments on commit 116c496

Please sign in to comment.