Skip to content

Commit

Permalink
add Copy for SupportedStreamConfigRange (RustAudio#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker authored Jan 21, 2024
1 parent 1847359 commit 7d8ee38
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 7d8ee38

Please sign in to comment.