mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
u16 implements the Copy trait, no need to declare everytime.
This commit is contained in:
parent
79dc570295
commit
f7d881e280
1 changed files with 1 additions and 1 deletions
|
|
@ -95,9 +95,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let mut stdin = io::stdin();
|
||||
stdin.read_to_string(&mut buffer).await?;
|
||||
let hosts: Vec<String> = buffer.lines().map(str::to_owned).collect();
|
||||
let mut response_code = 0;
|
||||
|
||||
futures::stream::iter(hosts.into_iter().map(|host| async move {
|
||||
let mut response_code = 0;
|
||||
let mut protocol = String::new();
|
||||
let client = reqwest::Client::builder()
|
||||
.timeout(std::time::Duration::from_secs(timeout))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue