Clippy fixes

This commit is contained in:
Eduard Tolosa 2025-04-20 13:32:54 -05:00
parent 002a612e70
commit c0ba951955
2 changed files with 3 additions and 3 deletions

View file

@ -35,13 +35,13 @@ pub async fn return_http_data(options: &LibOptions, from_cli: bool) -> HashMap<S
for _ in 0..options.retries {
let https_req = options
.client
.get(format!("https://{}", host))
.get(format!("https://{host}"))
.header(USER_AGENT, &user_agent)
.send();
let http_req = options
.client
.get(format!("http://{}", host))
.get(format!("http://{host}"))
.header(USER_AGENT, &user_agent)
.send();

View file

@ -27,7 +27,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
} else {
io::stdin().read_to_string(&mut buffer).await?;
hosts = buffer.lines().map(str::to_owned).collect();
};
}
let lib_options = LibOptions {
hosts,