Resolve needless_borrow pedantic clippy lint

error: the borrowed expression implements the required traits
       --> tests/repo/mod.rs:191:43
        |
    191 |     let response = reqwest::blocking::get(&url)?.error_for_status()?;
        |                                           ^^^^ help: change this to: `url`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
        = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
This commit is contained in:
David Tolnay 2022-10-24 21:25:47 -07:00
parent c29c2abf1b
commit 4510c1b1ef
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -188,7 +188,7 @@ fn download_and_unpack() -> Result<()> {
"https://github.com/rust-lang/rust/archive/{}.tar.gz",
REVISION
);
let response = reqwest::blocking::get(&url)?.error_for_status()?;
let response = reqwest::blocking::get(url)?.error_for_status()?;
let progress = Progress::new(response);
let decoder = GzDecoder::new(progress);
let mut archive = Archive::new(decoder);