Get rid of brackets around URLs

This commit is contained in:
Sunshine 2019-12-11 01:17:00 -05:00
parent 919e626b5e
commit 862489e41b

View file

@ -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());
}
}