From 862489e41b8510555f547183c277240fda7e8972 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Wed, 11 Dec 2019 01:17:00 -0500 Subject: [PATCH] Get rid of brackets around URLs --- src/http.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/http.rs b/src/http.rs index 97e77a7..ff25691 100644 --- a/src/http.rs +++ b/src/http.rs @@ -19,7 +19,7 @@ pub fn retrieve_asset( if cache.contains_key(&url.to_string()) { // url is in cache if !opt_silent { - eprintln!("[ {} ] (from cache)", &url); + eprintln!("{} (from cache)", &url); } let data = cache.get(&url.to_string()).unwrap(); Ok((data.to_string(), url.to_string())) @@ -33,9 +33,9 @@ pub fn retrieve_asset( if !opt_silent { if url == response.url().as_str() { - eprintln!("[ {} ]", &url); + eprintln!("{}", &url); } else { - eprintln!("[ {} -> {} ]", &url, &response.url().as_str()); + eprintln!("{} -> {}", &url, &response.url().as_str()); } }