Rust_Port_Sniffer icon indicating copy to clipboard operation
Rust_Port_Sniffer copied to clipboard

use clippy to improve code && fix code

Open asukaminato0721 opened this issue 2 years ago • 0 comments

according to a comment on youtube,

[Robert Tamlyn](https://www.youtube.com/channel/UCT5JRzKXwkjrn60YL1OmNfA)
[1 year ago](https://www.youtube.com/watch?v=-Jp7sabBCp4&lc=UgzUTLUh4vo6tKSiItN4AaABAg)
I had to use connect_timeout (instead of simply connect). Otherwise the connect attempts would never return and the program would loop forever.

I fix https://github.com/tensor-programming/Rust_Port_Sniffer/issues/1

Also, refine the code with clippy.

asukaminato0721 avatar Feb 24 '22 19:02 asukaminato0721