Skip to content

Commit bfe4470

Browse files
committed
Format code with cargo fmt
1 parent 7a8b276 commit bfe4470

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/host/wasapi/mod.rs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub use self::stream::Stream;
66
use crate::traits::HostTrait;
77
use crate::BackendSpecificError;
88
use crate::DevicesError;
9+
use crate::SupportedStreamConfigsError;
910
use std::io::Error as IoError;
1011
use windows::Win32::Media::Audio;
1112

@@ -25,15 +26,20 @@ impl Host {
2526
pub fn new() -> Result<Self, crate::HostUnavailable> {
2627
Ok(Host)
2728
}
28-
29-
fn supported_output_configs(&self, device: &Device) -> Result<SupportedOutputConfigs, DevicesError> {
30-
Ok(device.supported_output_configs()?)
29+
30+
fn supported_input_configs(
31+
&self,
32+
device: &Device,
33+
) -> Result<SupportedInputConfigs, DevicesError> {
34+
Ok(device.supported_input_configs()?)
3135
}
32-
33-
fn supported_input_configs(&self, device: &Device) -> Result<SupportedInputConfigs, DevicesError> {
36+
37+
fn supported_output_configs(
38+
&self,
39+
device: &Device,
40+
) -> Result<SupportedInputConfigs, DevicesError> {
3441
Ok(device.supported_input_configs()?)
3542
}
36-
3743
}
3844

3945
impl From<SupportedStreamConfigsError> for DevicesError {
@@ -58,15 +64,14 @@ impl HostTrait for Host {
5864
fn devices(&self) -> Result<Self::Devices, DevicesError> {
5965
Devices::new()
6066
}
61-
67+
6268
fn default_input_device(&self) -> Option<Self::Device> {
6369
default_input_device()
6470
}
6571

6672
fn default_output_device(&self) -> Option<Self::Device> {
6773
default_output_device()
6874
}
69-
7075
}
7176

7277
impl From<windows::core::Error> for BackendSpecificError {

0 commit comments

Comments
 (0)