Merge pull request #83 from snshn/stderr
Get rid of brackets around URLs
This commit is contained in:
commit
cf70383165
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ pub fn retrieve_asset(
|
||||||
if cache.contains_key(&url.to_string()) {
|
if cache.contains_key(&url.to_string()) {
|
||||||
// url is in cache
|
// url is in cache
|
||||||
if !opt_silent {
|
if !opt_silent {
|
||||||
eprintln!("[ {} ] (from cache)", &url);
|
eprintln!("{} (from cache)", &url);
|
||||||
}
|
}
|
||||||
let data = cache.get(&url.to_string()).unwrap();
|
let data = cache.get(&url.to_string()).unwrap();
|
||||||
Ok((data.to_string(), url.to_string()))
|
Ok((data.to_string(), url.to_string()))
|
||||||
|
@ -33,9 +33,9 @@ pub fn retrieve_asset(
|
||||||
|
|
||||||
if !opt_silent {
|
if !opt_silent {
|
||||||
if url == response.url().as_str() {
|
if url == response.url().as_str() {
|
||||||
eprintln!("[ {} ]", &url);
|
eprintln!("{}", &url);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("[ {} -> {} ]", &url, &response.url().as_str());
|
eprintln!("{} -> {}", &url, &response.url().as_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue