Skip to content

Add serve and transcribe sub-commands (#3) #18

Add serve and transcribe sub-commands (#3)

Add serve and transcribe sub-commands (#3) #18

Triggered via push October 18, 2023 02:17
Status Success
Total duration 1m 47s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

38 warnings
empty string literal in `println!`: src/main.rs#L210
warning: empty string literal in `println!` --> src/main.rs:210:9 | 210 | 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: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L168
warning: variables can be used directly in the `format!` string --> src/main.rs:168:13 | 168 | 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 | 168 - println!("Write the file to {}", file_path); 168 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L166
warning: variables can be used directly in the `format!` string --> src/main.rs:166:25 | 166 | 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 | 166 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 166 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L164
warning: variables can be used directly in the `format!` string --> src/main.rs:164:13 | 164 | 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 | 164 - println!("Bytes Length: {:?}", bytes_len); 164 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L153
warning: variables can be used directly in the `format!` string --> src/main.rs:153:13 | 153 | / println!( 154 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 155 | | name, file_name, content_type 156 | | ); | |_____________^ | = 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#L127
warning: variables can be used directly in the `format!` string --> src/main.rs:127:30 | 127 | .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 | 127 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 127 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
empty string literal in `println!`: src/main.rs#L210
warning: empty string literal in `println!` --> src/main.rs:210:9 | 210 | 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: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L168
warning: variables can be used directly in the `format!` string --> src/main.rs:168:13 | 168 | 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 | 168 - println!("Write the file to {}", file_path); 168 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L166
warning: variables can be used directly in the `format!` string --> src/main.rs:166:25 | 166 | 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 | 166 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 166 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L164
warning: variables can be used directly in the `format!` string --> src/main.rs:164:13 | 164 | 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 | 164 - println!("Bytes Length: {:?}", bytes_len); 164 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L153
warning: variables can be used directly in the `format!` string --> src/main.rs:153:13 | 153 | / println!( 154 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 155 | | name, file_name, content_type 156 | | ); | |_____________^ | = 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#L127
warning: variables can be used directly in the `format!` string --> src/main.rs:127:30 | 127 | .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 | 127 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 127 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
variables can be used directly in the `format!` string: src/main.rs#L85
warning: variables can be used directly in the `format!` string --> src/main.rs:85:9 | 85 | 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 | 85 - eprintln!("server error: {}", e); 85 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L83
warning: variables can be used directly in the `format!` string --> src/main.rs:83:5 | 83 | 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 | 83 - println!("🏃♀️ Server running at: {}", addr); 83 + println!("🏃♀️ Server running at: {addr}"); |
variables can be used directly in the `format!` string: src/main.rs#L85
warning: variables can be used directly in the `format!` string --> src/main.rs:85:9 | 85 | 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 | 85 - eprintln!("server error: {}", e); 85 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L83
warning: variables can be used directly in the `format!` string --> src/main.rs:83:5 | 83 | 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 | 83 - println!("🏃♀️ Server running at: {}", addr); 83 + println!("🏃♀️ Server running at: {addr}"); |
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/
empty string literal in `println!`: src/main.rs#L210
warning: empty string literal in `println!` --> src/main.rs:210:9 | 210 | 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: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L168
warning: variables can be used directly in the `format!` string --> src/main.rs:168:13 | 168 | 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 | 168 - println!("Write the file to {}", file_path); 168 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L166
warning: variables can be used directly in the `format!` string --> src/main.rs:166:25 | 166 | 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 | 166 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 166 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L164
warning: variables can be used directly in the `format!` string --> src/main.rs:164:13 | 164 | 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 | 164 - println!("Bytes Length: {:?}", bytes_len); 164 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L153
warning: variables can be used directly in the `format!` string --> src/main.rs:153:13 | 153 | / println!( 154 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 155 | | name, file_name, content_type 156 | | ); | |_____________^ | = 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#L127
warning: variables can be used directly in the `format!` string --> src/main.rs:127:30 | 127 | .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 | 127 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 127 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
empty string literal in `println!`: src/main.rs#L210
warning: empty string literal in `println!` --> src/main.rs:210:9 | 210 | 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: the lint level is defined here --> src/main.rs:1:9 | 1 | #![warn(clippy::all, clippy::pedantic, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[warn(clippy::println_empty_string)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/main.rs#L168
warning: variables can be used directly in the `format!` string --> src/main.rs:168:13 | 168 | 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 | 168 - println!("Write the file to {}", file_path); 168 + println!("Write the file to {file_path}"); |
variables can be used directly in the `format!` string: src/main.rs#L166
warning: variables can be used directly in the `format!` string --> src/main.rs:166:25 | 166 | 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 | 166 - file_path = format!("/tmp/{}", file_name_str); // Adjust as necessary 166 + file_path = format!("/tmp/{file_name_str}"); // Adjust as necessary |
variables can be used directly in the `format!` string: src/main.rs#L164
warning: variables can be used directly in the `format!` string --> src/main.rs:164:13 | 164 | 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 | 164 - println!("Bytes Length: {:?}", bytes_len); 164 + println!("Bytes Length: {bytes_len:?}"); |
variables can be used directly in the `format!` string: src/main.rs#L153
warning: variables can be used directly in the `format!` string --> src/main.rs:153:13 | 153 | / println!( 154 | | "Name: {:?}, FileName: {:?}, Content-Type: {:?}", 155 | | name, file_name, content_type 156 | | ); | |_____________^ | = 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#L127
warning: variables can be used directly in the `format!` string --> src/main.rs:127:30 | 127 | .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 | 127 - .body(Body::from(format!("INTERNAL SERVER ERROR: {}", err))) 127 + .body(Body::from(format!("INTERNAL SERVER ERROR: {err}"))) |
variables can be used directly in the `format!` string: src/main.rs#L85
warning: variables can be used directly in the `format!` string --> src/main.rs:85:9 | 85 | 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 | 85 - eprintln!("server error: {}", e); 85 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L85
warning: variables can be used directly in the `format!` string --> src/main.rs:85:9 | 85 | 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 | 85 - eprintln!("server error: {}", e); 85 + eprintln!("server error: {e}"); |
variables can be used directly in the `format!` string: src/main.rs#L83
warning: variables can be used directly in the `format!` string --> src/main.rs:83:5 | 83 | 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 | 83 - println!("🏃♀️ Server running at: {}", addr); 83 + println!("🏃♀️ Server running at: {addr}"); |
variables can be used directly in the `format!` string: src/main.rs#L83
warning: variables can be used directly in the `format!` string --> src/main.rs:83:5 | 83 | 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 | 83 - println!("🏃♀️ Server running at: {}", addr); 83 + println!("🏃♀️ Server running at: {addr}"); |