Skip to content

gha: compile darwin only aarch #38

gha: compile darwin only aarch

gha: compile darwin only aarch #38

GitHub Actions / clippy succeeded Oct 26, 2023 in 0s

clippy

20 warnings

Details

Results

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

Versions

  • rustc 1.75.0-nightly (df871fbf0 2023-10-24)
  • cargo 1.75.0-nightly (d2f6a0485 2023-10-20)
  • clippy 0.1.75 (df871fb 2023-10-24)

Annotations

Check warning on line 254 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: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)]`

Check warning on line 212 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: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}");
    |

Check warning on line 210 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: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
    |

Check warning on line 208 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: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:?}");
    |

Check warning on line 200 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: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

Check warning on line 148 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: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}")))
    |

Check warning on line 254 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: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)]`

Check warning on line 105 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: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}");
    |

Check warning on line 103 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: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}");
    |

Check warning on line 212 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: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}");
    |

Check warning on line 210 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: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
    |

Check warning on line 208 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: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:?}");
    |

Check warning on line 200 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: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

Check warning on line 148 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: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}")))
    |

Check warning on line 105 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: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}");
    |

Check warning on line 103 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: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}");
    |

Check warning on line 78 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

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

Check warning on line 78 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

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

Check warning on line 116 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

binding's name is too similar to existing binding

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

Check warning on line 116 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

binding's name is too similar to existing binding

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