mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 01:41:05 +00:00
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:
parent
c29c2abf1b
commit
4510c1b1ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user