Skip to content

README badge

README badge #34

Triggered via push October 26, 2023 23:14
Status Success
Total duration 34s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

26 warnings
empty string literal in `println!`: src/main.rs#L254
warning: empty string literal in `println!` --> src/main.rs:254:9 | 254 | 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#L212
warning: variables can be used directly in the `format!` string --> src/main.rs:212:13 | 212 | 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 | 212 - println!("Write the file to {}", file_path); 212 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L210
warning: variables can be used directly in the `format!` string --> src/main.rs:210:25 | 210 | 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 | 210 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 210 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L208
warning: variables can be used directly in the `format!` string --> src/main.rs:208:13 | 208 | 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 | 208 - println!("Bytes Length: {:?}", bytes_len); 208 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L197
warning: variables can be used directly in the `format!` string --> src/main.rs:197:13 | 197 | / println!( 198 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 199 | | name, file_name, content_type 200 | | ); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
empty string literal in `println!`: src/main.rs#L254
warning: empty string literal in `println!` --> src/main.rs:254:9 | 254 | 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#L148
warning: variables can be used directly in the `format!` string --> src/main.rs:148:30 | 148 | .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 | 148 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 148 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
variables can be used directly in the `format!` string: src/main.rs#L212
warning: variables can be used directly in the `format!` string --> src/main.rs:212:13 | 212 | 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 | 212 - println!("Write the file to {}", file_path); 212 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L210
warning: variables can be used directly in the `format!` string --> src/main.rs:210:25 | 210 | 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 | 210 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 210 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
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: `#[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}"); |
variables can be used directly in the `format!` string: src/main.rs#L208
warning: variables can be used directly in the `format!` string --> src/main.rs:208:13 | 208 | 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 | 208 - println!("Bytes Length: {:?}", bytes_len); 208 + println!("Bytes Length: {bytes_len:?}"); |
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)]`
variables can be used directly in the `format!` string: src/main.rs#L197
warning: variables can be used directly in the `format!` string --> src/main.rs:197:13 | 197 | / println!( 198 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 199 | | name, file_name, content_type 200 | | ); | |_____________^ | = 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#L148
warning: variables can be used directly in the `format!` string --> src/main.rs:148:30 | 148 | .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 | 148 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 148 + .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: `#[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)]`
binding's name is too similar to existing binding: src/main.rs#L116
warning: binding's name is too similar to existing binding --> src/main.rs:116:13 | 116 | let res = Response::builder() | ^^^ | note: existing binding defined here --> src/main.rs:111:5 | 111 | req: Request<Body>, | ^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names note: the lint level is defined here --> src/main.rs:1:22 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::similar_names)]` implied by `#[warn(clippy::pedantic)]`
binding's name is too similar to existing binding: src/main.rs#L116
warning: binding's name is too similar to existing binding --> src/main.rs:116:13 | 116 | let res = Response::builder() | ^^^ | note: existing binding defined here --> src/main.rs:111:5 | 111 | req: Request<Body>, | ^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names note: the lint level is defined here --> src/main.rs:1:22 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::similar_names)]` implied by `#[warn(clippy::pedantic)]`
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/