-
-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Setup
Versions
- Rust: 1.88
- Diesel: 2.2.11
- Diesel_async: 0.6
- Database: postgresql
- Operating System GNU/Linux
Feature Flags
- diesel: chrono, serde_json
- diesel_async: postgres, mobc
Problem Description
Compilation error
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `async_trait`
--> /home/andy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-async-0.6.0/src/pooled_connection/mobc.rs:69:3
|
69 | #[async_trait::async_trait]
| ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait`
error[E0195]: lifetime parameters or bounds on method `connect` do not match the trait declaration
--> /home/andy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-async-0.6.0/src/pooled_connection/mobc.rs:81:21
|
81 | async fn connect(&self) -> Result<Self::Connection, Self::Error> {
| ^ lifetimes do not match method in trait
error[E0195]: lifetime parameters or bounds on method `check` do not match the trait declaration
--> /home/andy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-async-0.6.0/src/pooled_connection/mobc.rs:87:19
|
87 | async fn check(&self, mut conn: Self::Connection) -> Result<Self::Connection, Self::Error> {
| ^ lifetimes do not match method in trait
What are you trying to accomplish?
What is the expected output?
What is the actual output?
Are you seeing any additional errors?
Steps to reproduce
Checklist
- I have already looked over the issue tracker for similar possible closed issues.
- This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case) - This issue can be reproduced without requiring a third party crate
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working