rustfmt
This commit is contained in:
parent
17e079d15d
commit
7d35b7d448
3 changed files with 4 additions and 8 deletions
2
build.rs
2
build.rs
|
|
@ -6,7 +6,7 @@ fn main() {
|
|||
// If ASIO directory isn't set silently return early
|
||||
// otherwise set the asio config flag
|
||||
match env::var(CPAL_ASIO_DIR) {
|
||||
Err(_) => {},
|
||||
Err(_) => {}
|
||||
Ok(_) => println!("cargo:rustc-cfg=asio"),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,9 +108,7 @@ pub fn default_input_device() -> Option<Device> {
|
|||
return None;
|
||||
}
|
||||
|
||||
let device = Device {
|
||||
audio_device_id,
|
||||
};
|
||||
let device = Device { audio_device_id };
|
||||
Some(device)
|
||||
}
|
||||
|
||||
|
|
@ -137,9 +135,7 @@ pub fn default_output_device() -> Option<Device> {
|
|||
return None;
|
||||
}
|
||||
|
||||
let device = Device {
|
||||
audio_device_id,
|
||||
};
|
||||
let device = Device { audio_device_id };
|
||||
Some(device)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ impl Data {
|
|||
pub fn len(&self) -> usize {
|
||||
self.len
|
||||
}
|
||||
|
||||
|
||||
/// The raw slice of memory representing the underlying audio data as a slice of bytes.
|
||||
///
|
||||
/// It is up to the user to interpret the slice of memory based on `Data::sample_format`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue