Skip to content

feat(local-redir, server): Check IP stack capability globally #1127

feat(local-redir, server): Check IP stack capability globally

feat(local-redir, server): Check IP stack capability globally #1127

Triggered via push June 16, 2024 11:57
Status Success
Total duration 11m 6s
Artifacts 5
Matrix: build-cross
Matrix: build-unix
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
transmute used without annotations: crates/shadowsocks-service/src/local/tun/tcp.rs#L172
warning: transmute used without annotations --> crates/shadowsocks-service/src/local/tun/tcp.rs:172:38 | 172 | let recv_buf = unsafe { mem::transmute::<_, &mut [u8]>(buf.unfilled_mut()) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<&mut [std::mem::MaybeUninit<u8>], &mut [u8]>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations = note: `#[warn(clippy::missing_transmute_annotations)]` on by default
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L171
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:171:20 | 171 | if let Ok(..) = ipv6_socket.bind(&local_host) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.bind(&local_host).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L169
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:169:16 | 169 | if let Ok(..) = ipv6_socket.set_only_v6(false) { | -------^^^^^^--------------------------------- help: try: `if ipv6_socket.set_only_v6(false).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L161
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:161:20 | 161 | if let Ok(..) = ipv6_socket.bind(&local_host) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.bind(&local_host).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L159
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:159:16 | 159 | if let Ok(..) = ipv6_socket.set_only_v6(true) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.set_only_v6(true).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L153
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:153:12 | 153 | if let Ok(_) = Socket::new(Domain::IPV4, Type::STREAM, Some(Protocol::TCP)) { | -------^^^^^--------------------------------------------------------------- help: try: `if Socket::new(Domain::IPV4, Type::STREAM, Some(Protocol::TCP)).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching = note: `#[warn(clippy::redundant_pattern_matching)]` on by default
transmute used without annotations: crates/shadowsocks-service/src/local/tun/tcp.rs#L172
warning: transmute used without annotations --> crates/shadowsocks-service/src/local/tun/tcp.rs:172:38 | 172 | let recv_buf = unsafe { mem::transmute::<_, &mut [u8]>(buf.unfilled_mut()) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<&mut [std::mem::MaybeUninit<u8>], &mut [u8]>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations = note: `#[warn(clippy::missing_transmute_annotations)]` on by default
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L171
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:171:20 | 171 | if let Ok(..) = ipv6_socket.bind(&local_host) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.bind(&local_host).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L169
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:169:16 | 169 | if let Ok(..) = ipv6_socket.set_only_v6(false) { | -------^^^^^^--------------------------------- help: try: `if ipv6_socket.set_only_v6(false).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L161
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:161:20 | 161 | if let Ok(..) = ipv6_socket.bind(&local_host) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.bind(&local_host).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L159
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:159:16 | 159 | if let Ok(..) = ipv6_socket.set_only_v6(true) { | -------^^^^^^-------------------------------- help: try: `if ipv6_socket.set_only_v6(true).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
redundant pattern matching, consider using `is_ok()`: crates/shadowsocks/src/net/sys/mod.rs#L153
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:153:12 | 153 | if let Ok(_) = Socket::new(Domain::IPV4, Type::STREAM, Some(Protocol::TCP)) { | -------^^^^^--------------------------------------------------------------- help: try: `if Socket::new(Domain::IPV4, Type::STREAM, Some(Protocol::TCP)).is_ok()` | = note: this will change drop order of the result, as well as all temporaries = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching = note: `#[warn(clippy::redundant_pattern_matching)]` on by default
build-unix (macos-latest, aarch64-apple-darwin)
gnu-tar 1.35 is already installed and up-to-date. To reinstall 1.35, run: brew reinstall gnu-tar
build-unix (macos-latest, x86_64-apple-darwin)
gnu-tar 1.35 is already installed and up-to-date. To reinstall 1.35, run: brew reinstall gnu-tar

Artifacts

Produced during runtime
Name Size
aarch64-apple-darwin Expired
7.39 MB
aarch64-unknown-linux-musl Expired
8.93 MB
windows-native Expired
21.5 MB
x86_64-apple-darwin Expired
10.1 MB
x86_64-unknown-linux-musl Expired
11.6 MB