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

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Oct 18, 2023 in 0s

clippy

16 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 16
Note 0
Help 0

Versions

  • rustc 1.75.0-nightly (09df6108c 2023-10-17)
  • cargo 1.75.0-nightly (8eb8acbb1 2023-10-17)
  • clippy 0.1.75 (09df610 2023-10-17)

Annotations

Check warning on line 210 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty string literal in `println!`

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)]`

Check warning on line 168 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
    |

Check warning on line 166 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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
    |

Check warning on line 164 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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:?}");
    |

Check warning on line 156 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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

Check warning on line 127 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}")))
    |

Check warning on line 210 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty string literal in `println!`

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)]`

Check warning on line 168 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
    |

Check warning on line 166 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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
    |

Check warning on line 164 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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:?}");
    |

Check warning on line 156 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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

Check warning on line 127 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}")))
    |

Check warning on line 85 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
   |

Check warning on line 83 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
   |

Check warning on line 85 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
   |

Check warning on line 83 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

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}");
   |