Skip to content

feat(shadowsocks): IpStackCapability check Ipv4-mapped-Ipv6 by connect() #387

feat(shadowsocks): IpStackCapability check Ipv4-mapped-Ipv6 by connect()

feat(shadowsocks): IpStackCapability check Ipv4-mapped-Ipv6 by connect() #387

Triggered via push June 16, 2024 13:14
Status Success
Total duration 3m 40s
Artifacts

build-msrv.yml

on: push
Matrix: buid-test-check
Fit to window
Zoom out
Zoom in

Annotations

10 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:12 | 171 | if let Ok(..) = check_ipv4_mapped_ipv6_capability() { | -------^^^^^^-------------------------------------- help: try: `if check_ipv4_mapped_ipv6_capability().is_ok()` | = 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#L163
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:163:20 | 163 | 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#L161
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:161:16 | 161 | 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#L154
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:154:12 | 154 | 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:12 | 171 | if let Ok(..) = check_ipv4_mapped_ipv6_capability() { | -------^^^^^^-------------------------------------- help: try: `if check_ipv4_mapped_ipv6_capability().is_ok()` | = 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#L163
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:163:20 | 163 | 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#L161
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:161:16 | 161 | 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#L154
warning: redundant pattern matching, consider using `is_ok()` --> crates/shadowsocks/src/net/sys/mod.rs:154:12 | 154 | 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