From ca925a9b50c37b6b6632068b0b76331eda8fcc63 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 16 Sep 2021 14:44:54 +0900 Subject: [PATCH] Comment out unused debugging fn --- src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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];