You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code statement produces a compile error, where times is a Vec<chrono::NaiveTime>:
query!("SELECT UNNEST($1::TIME[])",×);
The compile error is
error[E0433]: failed to resolve: could not find `sqlx` in `types`
--> src/routing/submission.rs:87:2
|
87 | query!("SELECT UNNEST($1::TIME[])", ×);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `sqlx` in `types`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `&`
--> src/routing/submission.rs:87:38
|
87 | query!("SELECT UNNEST($1::TIME[])", ×);
| ^
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0433`.
Running cargo expand, this seems to be the problematic part:
let ty_check = sqlx::ty_match::WrapSame::<&[sqlx::types::sqlx::types::chrono::NaiveTime],_,>::new(&_expr).wrap_same();
From my Cargo.toml file:
sqlx = { version = "0.4.1", features = ["runtime-tokio-rustls", "postgres", "macros", "chrono"], default-features = false }
The text was updated successfully, but these errors were encountered:
The following code statement produces a compile error, where
times
is aVec<chrono::NaiveTime>
:The compile error is
Running
cargo expand
, this seems to be the problematic part:From my
Cargo.toml
file:The text was updated successfully, but these errors were encountered: