Skip to content

feat(shadowsocks): ServerConfig::new returns Result #1335

feat(shadowsocks): ServerConfig::new returns Result

feat(shadowsocks): ServerConfig::new returns Result #1335

Triggered via push November 16, 2024 17:19
Status Success
Total duration 10m 46s
Artifacts 5
Matrix: build-cross
Matrix: build-unix
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
useless use of `format!`: crates/shadowsocks-service/src/manager/server.rs#L486
warning: useless use of `format!` --> crates/shadowsocks-service/src/manager/server.rs:486:39 | 486 | return Ok(AddResponse(format!("invalid server"))); | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"invalid server".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `#[warn(clippy::useless_format)]` on by default
very complex type used. Consider factoring parts into `type` definitions: crates/shadowsocks/src/config.rs#L486
warning: very complex type used. Consider factoring parts into `type` definitions --> crates/shadowsocks/src/config.rs:486:60 | 486 | fn password_to_keys<P>(method: CipherKind, password: P) -> Result<(String, Box<[u8]>, Vec<Bytes>), ServerConfigError> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity = note: `#[warn(clippy::type_complexity)]` on by default
useless use of `format!`: crates/shadowsocks-service/src/manager/server.rs#L486
warning: useless use of `format!` --> crates/shadowsocks-service/src/manager/server.rs:486:39 | 486 | return Ok(AddResponse(format!("invalid server"))); | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"invalid server".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `#[warn(clippy::useless_format)]` on by default
very complex type used. Consider factoring parts into `type` definitions: crates/shadowsocks/src/config.rs#L486
warning: very complex type used. Consider factoring parts into `type` definitions --> crates/shadowsocks/src/config.rs:486:60 | 486 | fn password_to_keys<P>(method: CipherKind, password: P) -> Result<(String, Box<[u8]>, Vec<Bytes>), ServerConfigError> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity = note: `#[warn(clippy::type_complexity)]` 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
8.33 MB
aarch64-unknown-linux-musl
9.35 MB
windows-native
22.3 MB
x86_64-apple-darwin
10.5 MB
x86_64-unknown-linux-musl
12.1 MB