Skip to content

cargo fmt

cargo fmt #23

Triggered via push October 24, 2023 18:14
Status Success
Total duration 37s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

23 warnings
empty string literal in `println!`: src/main.rs#L234
warning: empty string literal in `println!` --> src/main.rs:234:9 | 234 | println!(""); | ^^^^^^^^^--^ | | | help: remove the empty string | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L192
warning: variables can be used directly in the `format!` string --> src/main.rs:192:13 | 192 | println!("Write the file to {}", file_path); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 192 - println!("Write the file to {}", file_path); 192 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L190
warning: variables can be used directly in the `format!` string --> src/main.rs:190:25 | 190 | file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 190 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 190 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L177
warning: variables can be used directly in the `format!` string --> src/main.rs:177:13 | 177 | / println!( 178 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 179 | | name, file_name, content_type 180 | | ); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
variables can be used directly in the `format!` string: src/main.rs#L151
warning: variables can be used directly in the `format!` string --> src/main.rs:151:30 | 151 | .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 151 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 151 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
variables can be used directly in the `format!` string: src/main.rs#L105
warning: variables can be used directly in the `format!` string --> src/main.rs:105:9 | 105 | eprintln!("server error: {}", e); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 105 - eprintln!("server error: {}", e); 105 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L103
warning: variables can be used directly in the `format!` string --> src/main.rs:103:5 | 103 | println!("🏃♀️ Server running at: {}", addr); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/main.rs:1:22 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 103 - println!("🏃♀️ Server running at: {}", addr); 103 + println!("🏃♀️ Server running at: {addr}"); |
this expression creates a reference which is immediately dereferenced by the compiler: src/main.rs#L78
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/main.rs:78:32 | 78 | start_server(port, &model_path).await; | ^^^^^^^^^^^ help: change this to: `model_path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow note: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::needless_borrow)]` implied by `#[warn(clippy::all)]`
empty string literal in `println!`: src/main.rs#L234
warning: empty string literal in `println!` --> src/main.rs:234:9 | 234 | println!(""); | ^^^^^^^^^--^ | | | help: remove the empty string | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L192
warning: variables can be used directly in the `format!` string --> src/main.rs:192:13 | 192 | println!("Write the file to {}", file_path); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 192 - println!("Write the file to {}", file_path); 192 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L190
warning: variables can be used directly in the `format!` string --> src/main.rs:190:25 | 190 | file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 190 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 190 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L188
warning: variables can be used directly in the `format!` string --> src/main.rs:188:13 | 188 | println!("Bytes Length: {:?}", bytes_len); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 188 - println!("Bytes Length: {:?}", bytes_len); 188 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L177
warning: variables can be used directly in the `format!` string --> src/main.rs:177:13 | 177 | / println!( 178 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 179 | | name, file_name, content_type 180 | | ); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
variables can be used directly in the `format!` string: src/main.rs#L151
warning: variables can be used directly in the `format!` string --> src/main.rs:151:30 | 151 | .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 151 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 151 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
variables can be used directly in the `format!` string: src/main.rs#L105
warning: variables can be used directly in the `format!` string --> src/main.rs:105:9 | 105 | eprintln!("server error: {}", e); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 105 - eprintln!("server error: {}", e); 105 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L103
warning: variables can be used directly in the `format!` string --> src/main.rs:103:5 | 103 | println!("🏃♀️ Server running at: {}", addr); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/main.rs:1:22 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 103 - println!("🏃♀️ Server running at: {}", addr); 103 + println!("🏃♀️ Server running at: {addr}"); |
this expression creates a reference which is immediately dereferenced by the compiler: src/main.rs#L78
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/main.rs:78:32 | 78 | start_server(port, &model_path).await; | ^^^^^^^^^^^ help: change this to: `model_path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow note: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::needless_borrow)]` implied by `#[warn(clippy::all)]`
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, traitobject v0.1.0
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/