diff options
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index 52d0cb664..225c49996 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -59,8 +59,7 @@ pub fn resolve_redirect_from_response( Ok(new_url) } else { Err(generic_error(format!( - "Redirection from '{}' did not provide location header", - request_url + "Redirection from '{request_url}' did not provide location header" ))) } } @@ -290,7 +289,7 @@ impl HttpClient { "Bad response: {:?}{}", status, match maybe_response_text { - Some(text) => format!("\n\n{}", text), + Some(text) => format!("\n\n{text}"), None => String::new(), } ); |