vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
7.18k stars 278 forks source link

Warning during compiling from source #61

Open proguard opened 4 years ago

proguard commented 4 years ago

Hi,

We have found this to be a great program. while compling to ARM (aarch64), we get this warning

Compiling smart-default v0.3.0 Compiling derivative v1.0.2 Compiling structopt v0.2.16 Compiling websocat v1.5.0 warning: use of deprecated item 'try': use the ? operator instead --> src/net_peer.rs:179:9 179 try!(self.0.shutdown(std::net::Shutdown::Write)); ^^^
= note: `#[warn(deprecated)]` on by default

warning: use of deprecated item 'try': use the ? operator instead --> src/unix_peer.rs:317:9 | 317 | try!(self.0.shutdown(std::net::Shutdown::Write)); | ^^^

Finished release [optimized] target(s) in 8m 45s

Would this cause errors for Websocat durining operation?

Thanks Aguard

vi commented 4 years ago

No, this is a minor warning. It is already fixed in pending websocat 2.0.

The warning is just about old way and new way of writing the same thing in Rust.

proguard commented 4 years ago

Thank you.

Great work.