Fix compilation warnings
This commit is contained in:
parent
c8fc1002cb
commit
8a3dc611fa
|
@ -9,11 +9,11 @@ use crate::{
|
||||||
SupportedBufferSize, SupportedStreamConfig, SupportedStreamConfigRange,
|
SupportedBufferSize, SupportedStreamConfig, SupportedStreamConfigRange,
|
||||||
SupportedStreamConfigsError,
|
SupportedStreamConfigsError,
|
||||||
};
|
};
|
||||||
|
use std::cmp;
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::thread::{self, JoinHandle};
|
use std::thread::{self, JoinHandle};
|
||||||
use std::vec::IntoIter as VecIntoIter;
|
use std::vec::IntoIter as VecIntoIter;
|
||||||
use std::{cmp, mem};
|
|
||||||
use traits::{DeviceTrait, HostTrait, StreamTrait};
|
use traits::{DeviceTrait, HostTrait, StreamTrait};
|
||||||
|
|
||||||
pub use self::enumerate::{default_input_device, default_output_device, Devices};
|
pub use self::enumerate::{default_input_device, default_output_device, Devices};
|
||||||
|
@ -446,7 +446,9 @@ struct StreamInner {
|
||||||
// Minimum number of samples to put in the buffer.
|
// Minimum number of samples to put in the buffer.
|
||||||
period_len: usize,
|
period_len: usize,
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
// Whether or not the hardware supports pausing the stream.
|
// Whether or not the hardware supports pausing the stream.
|
||||||
|
// TODO: We need an API to expose this. See #197, #284.
|
||||||
can_pause: bool,
|
can_pause: bool,
|
||||||
|
|
||||||
// In the case that the device does not return valid timestamps via `get_htstamp`, this field
|
// In the case that the device does not return valid timestamps via `get_htstamp`, this field
|
||||||
|
|
Loading…
Reference in New Issue