From 72d6be406e75ca0c40c134311f558cbec9c9f356 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 3 Jan 2021 13:20:04 -0800 Subject: [PATCH] Twiddles --- examples/blits.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/blits.rs b/examples/blits.rs index a988412..5d13375 100644 --- a/examples/blits.rs +++ b/examples/blits.rs @@ -250,8 +250,12 @@ fn main() -> io::Result<()> { ) .get_matches(); - let sample_rate = matches.value_of("sample_rate").unwrap().parse::().expect("Failed to read sample rate"); - let bits_per_sample = matches.value_of("bit_depth").unwrap().parse::().expect("Failed to read bit depth"); + let sample_rate = matches.value_of("sample_rate").unwrap().parse::() + .expect("Failed to read sample rate"); + + let bits_per_sample = matches.value_of("bit_depth").unwrap().parse::() + .expect("Failed to read bit depth"); + let filename = matches.value_of("OUTPUT").unwrap(); match create_blits_file(&filename, sample_rate, bits_per_sample) {