From 35232c1fdf4235260150b82396e18b8bfe9725c9 Mon Sep 17 00:00:00 2001 From: "pixincreate@work" <69745008+pixincreate@users.noreply.github.com> Date: Wed, 18 Oct 2023 23:28:33 +0530 Subject: [PATCH] Address clippy changes --- crates/test_utils/src/newman_runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/test_utils/src/newman_runner.rs b/crates/test_utils/src/newman_runner.rs index 5ce52d14da83..c9928206b581 100644 --- a/crates/test_utils/src/newman_runner.rs +++ b/crates/test_utils/src/newman_runner.rs @@ -27,7 +27,7 @@ struct Args { /// Minimum delay to be added before sending a request /// By default, 7 milliseconds will be the delay #[arg(short, long = "delay_request", default_value_t = 7)] - delay_request: u8, + delay_request: u32, /// Folder name of specific tests #[arg(short, long = "folder")] folders: Option, @@ -53,7 +53,7 @@ fn insert_content(dir: &String, content_to_insert: &str) -> io::Result { let mut file = OpenOptions::new() .write(true) .create(true) - .open(&file_path)?; + .open(file_path)?; // Write the content to the file file.write_all(content_to_insert.as_bytes())?;