From: Stephen Seo Date: Thu, 16 Sep 2021 05:44:54 +0000 (+0900) Subject: Comment out unused debugging fn X-Git-Tag: 0.1.0~33 X-Git-Url: https://git.seodisparate.com/stephenseo/server_config?a=commitdiff_plain;h=ca925a9b50c37b6b6632068b0b76331eda8fcc63;p=mpd_info_screen Comment out unused debugging fn --- diff --git a/src/main.rs b/src/main.rs index 506d0de..1ed7f65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -196,14 +196,14 @@ fn read_line( Err((String::from("Newline not reached"), result)) } -fn debug_write_albumart_to_file(data: &[u8]) -> Result<(), String> { - let mut f = File::create("albumartOut.jpg") - .map_err(|_| String::from("Failed to open file for writing albumart"))?; - f.write_all(data) - .map_err(|_| String::from("Failed to write to albumartOut.jpg"))?; - - Ok(()) -} +//fn debug_write_albumart_to_file(data: &[u8]) -> Result<(), String> { +// let mut f = File::create("albumartOut.jpg") +// .map_err(|_| String::from("Failed to open file for writing albumart"))?; +// f.write_all(data) +// .map_err(|_| String::from("Failed to write to albumartOut.jpg"))?; +// +// Ok(()) +//} fn info_loop(shared_data: Arc>) -> Result<(), String> { let mut buf: [u8; 4192] = [0; 4192];