Run rustfmt on the code (#162)
This commit is contained in:
parent
cdcef96279
commit
2028d5907f
13 changed files with 622 additions and 399 deletions
|
|
@ -2,14 +2,19 @@ extern crate cpal;
|
|||
|
||||
fn main() {
|
||||
let endpoints = cpal::endpoints();
|
||||
|
||||
|
||||
println!("Endpoints: ");
|
||||
for (endpoint_index, endpoint) in endpoints.enumerate() {
|
||||
println!("{}. Endpoint \"{}\" Audio formats: ", endpoint_index + 1, endpoint.name());
|
||||
println!("{}. Endpoint \"{}\" Audio formats: ",
|
||||
endpoint_index + 1,
|
||||
endpoint.name());
|
||||
|
||||
let formats = match endpoint.supported_formats() {
|
||||
Ok(f) => f,
|
||||
Err(e) => { println!("Error: {:?}", e); continue; }
|
||||
Err(e) => {
|
||||
println!("Error: {:?}", e);
|
||||
continue;
|
||||
},
|
||||
};
|
||||
|
||||
for (format_index, format) in formats.enumerate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue