fix: v1.67 clippy lints (inline format strings)
This commit is contained in:
parent
15dad0c428
commit
331a13568a
33 changed files with 200 additions and 288 deletions
|
|
@ -29,7 +29,7 @@ pub enum DownloadError {
|
|||
/// `example.com/api?k1=v1&k2=v2 => example.com/api; {k1: v1, k2: v2}`
|
||||
pub fn url_to_params(url: &str) -> Result<(Url, BTreeMap<String, String>), DownloadError> {
|
||||
let mut parsed_url = Url::parse(url).map_err(|e| {
|
||||
DownloadError::Other(format!("could not parse url `{}` err: {}", url, e).into())
|
||||
DownloadError::Other(format!("could not parse url `{url}` err: {e}").into())
|
||||
})?;
|
||||
let url_params: BTreeMap<String, String> = parsed_url
|
||||
.query_pairs()
|
||||
|
|
|
|||
Reference in a new issue