From 911a4a80eb7e4d98a96b813ebff3e659d50f040c Mon Sep 17 00:00:00 2001 From: thajohns Date: Thu, 9 Sep 2021 01:16:04 -0400 Subject: formatted some more --- src/main.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 38c2e78..7b0f0e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::fs::File; use std::io::Read; use std::net::*; use std::sync::*; -use std::{env, iter, thread, ffi}; +use std::{env, ffi, iter, thread}; extern crate portaudio; use portaudio as pa; @@ -27,11 +27,15 @@ fn main() -> Result<(), std::io::Error> { Ok(()) } - fn main_client(args: Vec) -> Result<(), std::io::Error> { let env = Environment::default(); - let mut genfile = File::open(args.iter().nth(1).expect("Need first argument to be a file with a generator vector")).expect("Failed to open file"); + let mut genfile = File::open( + args.iter() + .nth(1) + .expect("Need first argument to be a file with a generator vector"), + ) + .expect("Failed to open file"); let mut genstr = String::new(); genfile.read_to_string(&mut genstr)?; @@ -126,7 +130,7 @@ fn main_client(args: Vec) -> Result<(), std::io::Error> { }; eprintln!("Network thread started."); - + net_thread.join().expect("Network thread panicked"); eprintln!("Exiting."); -- cgit v1.2.3-70-g09d2