Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate clap to v4.5.19 #1696

Merged
merged 1 commit into from
Oct 4, 2024

fix(deps): update rust crate clap to v4.5.19

a3b8fb9
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

fix(deps): update rust crate clap to v4.5.19 #1696

fix(deps): update rust crate clap to v4.5.19
a3b8fb9
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy macos-latest succeeded Oct 4, 2024 in 0s

clippy macos-latest

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cda 2024-09-04)

Annotations

Check warning on line 66 in crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs

See this annotation in the file changed.

@github-actions github-actions / clippy macos-latest

this `match` can be collapsed into the outer `if let`

warning: this `match` can be collapsed into the outer `if let`
  --> crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:58:21
   |
58 | /                     match errno {
59 | |                         libc::ENOPROTOOPT => {
60 | |                             trace!("failed to set SO_REUSEPORT, error: {}", err);
61 | |                         }
...  |
65 | |                         }
66 | |                     }
   | |_____________________^
   |
help: the outer pattern can be modified to include the inner pattern
  --> crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:57:29
   |
57 |                 if let Some(errno) = err.raw_os_error() {
   |                             ^^^^^ replace this binding
58 |                     match errno {
59 |                         libc::ENOPROTOOPT => {
   |                         ^^^^^^^^^^^^^^^^^ with this pattern
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
   = note: `#[warn(clippy::collapsible_match)]` on by default