dizda / fast-socks5

Fast SOCKS5 client/server implementation written in Rust async/.await (with tokio)
https://anyip.io/
MIT License
340 stars 67 forks source link

Typo fix, forbid unsafe code #25

Closed AlyoshaVasilieva closed 1 year ago

AlyoshaVasilieva commented 2 years ago
error: useless lint attribute
 --> src\lib.rs:1:1
  |
1 | #[forbid(unsafe_code)]
  | ^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![forbid(unsafe_code)]`
  |
  = note: `#[deny(clippy::useless_attribute)]` on by default
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute

error: useless lint attribute
 --> src\client.rs:1:1
  |
1 | #[forbid(unsafe_code)]
  | ^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![forbid(unsafe_code)]`
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute

#![forbid(unsafe_code)] in lib.rs is crate-level forbid of unsafe code

dizda commented 1 year ago

Thank you @AlyoshaVasilieva 🙏