From e0513d74c29e13025c9173c8db212f01692af74f Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sun, 7 Aug 2022 00:23:20 -0400 Subject: [PATCH] lint code --- src/utils.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index ca42008..5d66a53 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -284,10 +284,11 @@ pub fn retrieve_asset( match response.bytes() { Ok(b) => { data = b.to_vec(); - }, + } Err(error) => { if !options.silent { - eprintln!("{}{}{}{}", + eprintln!( + "{}{}{}{}", indent(depth).as_str(), if options.no_color { "" } else { ANSI_COLOR_RED }, error, @@ -298,7 +299,7 @@ pub fn retrieve_asset( }, ); } - }, + } } // Add retrieved resource to cache