Checking moltis-providers v0.1.0 (/Users/penso/.superset/worktrees/moltis/olive-gatsby/crates/providers)
error: this if statement can be collapsed
--> crates/providers/src/openai_compat/strict_mode.rs:66:5
|
66 | / if let Some(enum_values) = obj.get_mut("enum").and_then(|v| v.as_array_mut()) {
67 | | if !enum_values.iter().any(|v| v.is_null()) {
68 | | enum_values.push(serde_json::Value::Null);
69 | | }
70 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: -D clippy::collapsible-if implied by -D warnings
= help: to override -D warnings add #[allow(clippy::collapsible_if)]
help: collapse nested if block
|
66 ~ if let Some(enum_values) = obj.get_mut("enum").and_then(|v| v.as_array_mut())
67 ~ && !enum_values.iter().any(|v| v.is_null()) {
68 | enum_values.push(serde_json::Value::Null);
69 ~ }
|
error: used expect() on a Result value
--> crates/providers/src/async_openai_provider.rs:272:21
|
272 | let built = build_messages(&messages).expect("messages should build");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an Err, it will panic
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
= note: requested on the command line with -D clippy::expect-used
error: used expect() on a Result value
--> crates/providers/src/async_openai_provider.rs:299:21
|
299 | let built = build_messages(&messages).expect("messages should build");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an Err, it will panic
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
error: could not compile moltis-providers (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: used expect() on an Option value
--> crates/providers/src/openai_compat/tests.rs:432:21
|
432 | let time_enum = time_range["enum"]
| ___________________^
433 | | .as_array()
434 | | .expect("time_range should have enum");
| |____________________________________________^
|
= note: if this value is , it will panic
= help: for further information visit