Skip to content

fix(shadowsocks): unbreak OpenBSD build #1048

fix(shadowsocks): unbreak OpenBSD build

fix(shadowsocks): unbreak OpenBSD build #1048

Triggered via push April 8, 2024 01:53
Status Success
Total duration 3m 19s
Artifacts

clippy-check.yml

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

Annotations

20 warnings
the item `url` is imported redundantly: crates/shadowsocks/src/config.rs#L21
warning: the item `url` is imported redundantly --> crates/shadowsocks/src/config.rs:21:11 | 21 | use url::{self, Url}; | ^^^^ the item `url` is already defined by prelude | = note: `#[warn(unused_imports)]` on by default
the item `ToString` is imported redundantly: crates/shadowsocks/src/manager/protocol.rs#L7
warning: the item `ToString` is imported redundantly --> crates/shadowsocks/src/manager/protocol.rs:7:5 | 7 | string::ToString, | ^^^^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:144:13 | = note: the item `ToString` is already defined here
the item `From` is imported redundantly: crates/shadowsocks/src/relay/socks5.rs#L6
warning: the item `From` is imported redundantly --> crates/shadowsocks/src/relay/socks5.rs:6:5 | 6 | convert::From, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `From` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/aead.rs#L36
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/aead.rs:36:5 | 36 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L48
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:48:5 | 48 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/crypto_io.rs#L5
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:5:5 | 5 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/stream.rs#L4
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/stream.rs:4:5 | 4 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
importing legacy numeric constants: crates/shadowsocks/src/relay/tcprelay/aead.rs#L40
warning: importing legacy numeric constants --> crates/shadowsocks/src/relay/tcprelay/aead.rs:40:5 | 40 | u16, | ^^^ | = help: remove this import = note: then `u16::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
importing legacy numeric constants: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L54
warning: importing legacy numeric constants --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:54:5 | 54 | u16, | ^^^ | = help: remove this import = note: then `u16::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
the item `From` is imported redundantly: crates/shadowsocks-service/src/config.rs#L46
warning: the item `From` is imported redundantly --> crates/shadowsocks-service/src/config.rs:46:15 | 46 | convert::{From, Infallible}, | ^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `From` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `url` is imported redundantly: crates/shadowsocks/src/config.rs#L21
warning: the item `url` is imported redundantly --> crates/shadowsocks/src/config.rs:21:11 | 21 | use url::{self, Url}; | ^^^^ the item `url` is already defined by prelude | = note: `#[warn(unused_imports)]` on by default
the item `ToString` is imported redundantly: crates/shadowsocks/src/manager/protocol.rs#L7
warning: the item `ToString` is imported redundantly --> crates/shadowsocks/src/manager/protocol.rs:7:5 | 7 | string::ToString, | ^^^^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:144:13 | = note: the item `ToString` is already defined here
the item `From` is imported redundantly: crates/shadowsocks/src/relay/socks5.rs#L6
warning: the item `From` is imported redundantly --> crates/shadowsocks/src/relay/socks5.rs:6:5 | 6 | convert::From, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `From` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/aead.rs#L36
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/aead.rs:36:5 | 36 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L48
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:48:5 | 48 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/crypto_io.rs#L5
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:5:5 | 5 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
the item `Unpin` is imported redundantly: crates/shadowsocks/src/relay/tcprelay/stream.rs#L4
warning: the item `Unpin` is imported redundantly --> crates/shadowsocks/src/relay/tcprelay/stream.rs:4:5 | 4 | marker::Unpin, | ^^^^^^^^^^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `Unpin` is already defined here
importing legacy numeric constants: crates/shadowsocks/src/relay/tcprelay/aead.rs#L40
warning: importing legacy numeric constants --> crates/shadowsocks/src/relay/tcprelay/aead.rs:40:5 | 40 | u16, | ^^^ | = help: remove this import = note: then `u16::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
importing legacy numeric constants: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L54
warning: importing legacy numeric constants --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:54:5 | 54 | u16, | ^^^ | = help: remove this import = note: then `u16::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
the item `From` is imported redundantly: crates/shadowsocks-service/src/config.rs#L46
warning: the item `From` is imported redundantly --> crates/shadowsocks-service/src/config.rs:46:15 | 46 | convert::{From, Infallible}, | ^^^^ --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13 | = note: the item `From` is already defined here | = note: `#[warn(unused_imports)]` on by default