File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ pub fn retrieve_asset(
550550
551551 if cache. is_some ( ) && cache. as_ref ( ) . unwrap ( ) . contains_key ( & cache_key) {
552552 // URL is in cache, we get and return it
553- print_info_message ( & format ! ( "{} (from cache)" , & url ) , options) ;
553+ print_info_message ( & format ! ( "{} (from cache)" , & cache_key ) , options) ;
554554
555555 Ok ( (
556556 cache. as_ref ( ) . unwrap ( ) . get ( & cache_key) . unwrap ( ) . 0 . to_vec ( ) ,
@@ -600,9 +600,12 @@ pub fn retrieve_asset(
600600 let response_url: Url = response. url ( ) . clone ( ) ;
601601
602602 if url. as_str ( ) == response_url. as_str ( ) {
603- print_info_message ( & format ! ( "{}" , & url ) , options) ;
603+ print_info_message ( & cache_key . to_string ( ) , options) ;
604604 } else {
605- print_info_message ( & format ! ( "{} -> {}" , & url, & response_url) , options) ;
605+ print_info_message (
606+ & format ! ( "{} -> {}" , & cache_key, & response_url) ,
607+ options,
608+ ) ;
606609 }
607610
608611 let new_cache_key: String = clean_url ( response_url. clone ( ) ) . to_string ( ) ;
You can’t perform that action at this time.
0 commit comments