updating dependencies #17
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
check.yml
on: push
stable / fmt
8s
nightly / doc
42s
ubuntu / stable / features
42s
Matrix: clippy
Annotations
10 warnings
useless use of `format!`:
src/main.rs#L190
warning: useless use of `format!`
--> src/main.rs:190:18
|
190 | content: format!("{}", to_summarize),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `to_summarize.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L178
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:178:37
|
178 | let client = ChatGPTClient::new(&api_key, "https://api.openai.com");
| ^^^^^^^^ help: change this to: `api_key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
returning the result of a `let` binding from a block:
src/main.rs#L203
warning: returning the result of a `let` binding from a block
--> src/main.rs:203:5
|
199 | / let return_value = client
200 | | .chat(input)
201 | | .await
202 | | .context("Failed to get chat response from client");
| |____________________________________________________________- unnecessary `let` binding
203 | return_value
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
199 ~
200 ~ client
201 + .chat(input)
202 + .await
203 + .context("Failed to get chat response from client")
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L139
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:139:51
|
139 | ... let summary = summary(&api_key, text_to_summarize).await?;
| ^^^^^^^^ help: change this to: `api_key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
stable / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
useless use of `format!`:
src/main.rs#L190
warning: useless use of `format!`
--> src/main.rs:190:18
|
190 | content: format!("{}", to_summarize),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `to_summarize.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L178
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:178:37
|
178 | let client = ChatGPTClient::new(&api_key, "https://api.openai.com");
| ^^^^^^^^ help: change this to: `api_key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
returning the result of a `let` binding from a block:
src/main.rs#L203
warning: returning the result of a `let` binding from a block
--> src/main.rs:203:5
|
199 | / let return_value = client
200 | | .chat(input)
201 | | .await
202 | | .context("Failed to get chat response from client");
| |____________________________________________________________- unnecessary `let` binding
203 | return_value
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
199 ~
200 ~ client
201 + .chat(input)
202 + .await
203 + .context("Failed to get chat response from client")
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L139
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:139:51
|
139 | ... let summary = summary(&api_key, text_to_summarize).await?;
| ^^^^^^^^ help: change this to: `api_key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
beta / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|