diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /test_util/src/lib.rs | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 5bbccacd8..3b23af736 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -1088,7 +1088,7 @@ async fn download_npm_registry_file( .into_bytes() }; std::fs::create_dir_all(file_path.parent().unwrap())?; - std::fs::write(&file_path, bytes)?; + std::fs::write(file_path, bytes)?; Ok(()) } @@ -1918,7 +1918,7 @@ impl<'a> CheckOutputIntegrationTest<'a> { command.env_clear(); } command.envs(self.envs.clone()); - command.current_dir(&cwd); + command.current_dir(cwd); command.stdin(Stdio::piped()); let writer_clone = writer.try_clone().unwrap(); command.stderr(writer_clone); @@ -2163,13 +2163,13 @@ pub fn parse_wrk_output(output: &str) -> WrkOutput { let mut latency = None; for line in output.lines() { - if requests == None { + if requests.is_none() { if let Some(cap) = REQUESTS_RX.captures(line) { requests = Some(str::parse::<u64>(cap.get(1).unwrap().as_str()).unwrap()); } } - if latency == None { + if latency.is_none() { if let Some(cap) = LATENCY_RX.captures(line) { let time = cap.get(1).unwrap(); let unit = cap.get(2).unwrap(); |