Rust_Port_Sniffer
Rust_Port_Sniffer copied to clipboard
use clippy to improve code && fix code
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.