From 7d35b7d44894f11b5564003a808cabc9b10dd303 Mon Sep 17 00:00:00 2001 From: Darakshan Farber Date: Tue, 21 Jul 2020 17:59:53 -0700 Subject: [PATCH] rustfmt --- build.rs | 2 +- src/host/coreaudio/enumerate.rs | 8 ++------ src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/build.rs b/build.rs index 5e2a54e..52cddc5 100644 --- a/build.rs +++ b/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"), }; } diff --git a/src/host/coreaudio/enumerate.rs b/src/host/coreaudio/enumerate.rs index 7ba8e38..f7b3e78 100644 --- a/src/host/coreaudio/enumerate.rs +++ b/src/host/coreaudio/enumerate.rs @@ -108,9 +108,7 @@ pub fn default_input_device() -> Option { 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 { return None; } - let device = Device { - audio_device_id, - }; + let device = Device { audio_device_id }; Some(device) } diff --git a/src/lib.rs b/src/lib.rs index dab37ba..7cf2851 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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`.