mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
Clippy fixes
This commit is contained in:
parent
002a612e70
commit
c0ba951955
2 changed files with 3 additions and 3 deletions
|
|
@ -35,13 +35,13 @@ pub async fn return_http_data(options: &LibOptions, from_cli: bool) -> HashMap<S
|
||||||
for _ in 0..options.retries {
|
for _ in 0..options.retries {
|
||||||
let https_req = options
|
let https_req = options
|
||||||
.client
|
.client
|
||||||
.get(format!("https://{}", host))
|
.get(format!("https://{host}"))
|
||||||
.header(USER_AGENT, &user_agent)
|
.header(USER_AGENT, &user_agent)
|
||||||
.send();
|
.send();
|
||||||
|
|
||||||
let http_req = options
|
let http_req = options
|
||||||
.client
|
.client
|
||||||
.get(format!("http://{}", host))
|
.get(format!("http://{host}"))
|
||||||
.header(USER_AGENT, &user_agent)
|
.header(USER_AGENT, &user_agent)
|
||||||
.send();
|
.send();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
} else {
|
} else {
|
||||||
io::stdin().read_to_string(&mut buffer).await?;
|
io::stdin().read_to_string(&mut buffer).await?;
|
||||||
hosts = buffer.lines().map(str::to_owned).collect();
|
hosts = buffer.lines().map(str::to_owned).collect();
|
||||||
};
|
}
|
||||||
|
|
||||||
let lib_options = LibOptions {
|
let lib_options = LibOptions {
|
||||||
hosts,
|
hosts,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue