implementation of Executor
is not general enough when use query_as
#3084
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when i try to pass &PgPool to the executor, it errors
error: implementation of
Executor
is not general enough--> src/startup.rs:110:38
|
110 | .route("/public/assets", get(public_assets))
| ^^^^^^^^^^^^^^^^^^ implementation of
Executor
is not general enough|
= note:
&sqlx::Pool<Postgres>
must implementExecutor<'0>
, for any lifetime'0
...= note: ...but
&sqlx::Pool<Postgres>
actually implementsExecutor<'1>
, for some specific lifetime'1
Beta Was this translation helpful? Give feedback.
All reactions