refactor(message): update message api types #591
Annotations
3 errors
Run clippy action:
rig-core/src/providers/anthropic/completion.rs#L119
error: unneeded `return` statement
--> rig-core/src/providers/anthropic/completion.rs:119:9
|
119 | / return Ok(completion::CompletionResponse {
120 | | choice,
121 | | raw_response: response,
122 | | });
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `-D clippy::needless-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
help: remove `return`
|
119 ~ Ok(completion::CompletionResponse {
120 + choice,
121 + raw_response: response,
122 ~ })
|
|
Run clippy action:
rig-core/src/providers/gemini/completion.rs#L148
error: accessing first element with `response.candidates.get(0)`
--> rig-core/src/providers/gemini/completion.rs:148:25
|
148 | let candidate = response.candidates.get(0).ok_or_else(|| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `response.candidates.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-D clippy::get-first` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
Run clippy action
Clippy has exited with exit code 101
|
Loading