From 271cc34f3f749314887dbcb95946504ca1e9f4d6 Mon Sep 17 00:00:00 2001 From: JoshuaBatty Date: Wed, 27 May 2020 13:28:18 +0200 Subject: [PATCH] cargo fmt fix for coreaudio --- src/host/coreaudio/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/host/coreaudio/mod.rs b/src/host/coreaudio/mod.rs index af699de..eb74a96 100644 --- a/src/host/coreaudio/mod.rs +++ b/src/host/coreaudio/mod.rs @@ -689,7 +689,7 @@ impl Device { BufferSize::Fixed(v) => { let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?; match buffer_size_range { - SupportedBufferSize::Range{min, max} => { + SupportedBufferSize::Range { min, max } => { if v >= min && v <= max { audio_unit.set_property( kAudioDevicePropertyBufferFrameSize, @@ -700,7 +700,7 @@ impl Device { } else { return Err(BuildStreamError::StreamConfigNotSupported); } - }, + } SupportedBufferSize::Unknown => (), } } @@ -783,7 +783,7 @@ impl Device { BufferSize::Fixed(v) => { let buffer_size_range = get_io_buffer_frame_size_range(&audio_unit)?; match buffer_size_range { - SupportedBufferSize::Range{min, max} => { + SupportedBufferSize::Range { min, max } => { if v >= min && v <= max { audio_unit.set_property( kAudioDevicePropertyBufferFrameSize, @@ -794,7 +794,7 @@ impl Device { } else { return Err(BuildStreamError::StreamConfigNotSupported); } - }, + } SupportedBufferSize::Unknown => (), } }