Skip to content

Commit

Permalink
add Copy for SupportedStreamConfigRange
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker committed Jan 18, 2024
1 parent 310160f commit 15d7b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ pub struct StreamConfig {
}

/// Describes the minimum and maximum supported buffer size for the device
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SupportedBufferSize {
Range {
min: FrameCount,
Expand All @@ -278,7 +278,7 @@ pub enum SupportedBufferSize {

/// Describes a range of supported stream configurations, retrieved via the
/// [`Device::supported_input/output_configs`](traits::DeviceTrait#required-methods) method.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct SupportedStreamConfigRange {
pub(crate) channels: ChannelCount,
/// Minimum value for the samples rate of the supported formats.
Expand Down

0 comments on commit 15d7b50

Please sign in to comment.