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
|
// If ASIO directory isn't set silently return early
|
||||||
// otherwise set the asio config flag
|
// otherwise set the asio config flag
|
||||||
match env::var(CPAL_ASIO_DIR) {
|
match env::var(CPAL_ASIO_DIR) {
|
||||||
Err(_) => {},
|
Err(_) => {}
|
||||||
Ok(_) => println!("cargo:rustc-cfg=asio"),
|
Ok(_) => println!("cargo:rustc-cfg=asio"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,7 @@ pub fn default_input_device() -> Option<Device> {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
let device = Device {
|
let device = Device { audio_device_id };
|
||||||
audio_device_id,
|
|
||||||
};
|
|
||||||
Some(device)
|
Some(device)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -137,9 +135,7 @@ pub fn default_output_device() -> Option<Device> {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
let device = Device {
|
let device = Device { audio_device_id };
|
||||||
audio_device_id,
|
|
||||||
};
|
|
||||||
Some(device)
|
Some(device)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue