-
Is there some changes of I can run this several days ago, but today I execute Cargo.toml sea-orm = { version = "0.4.0", git = "https://github.com/SeaQL/sea-orm.git", branch = "issues/344", features = ["sqlx-mysql", "runtime-tokio-native-tls", "macros", "with-chrono"], default-features = false } error[E0308]: mismatched types
--> src/database/sea.rs:8:46
|
8 | SqlxMySqlConnector::from_sqlx_mysql_pool(pool)
| ^^^^ expected struct `sqlx_core::pool::Pool`, found struct `Pool`
|
= note: expected struct `sqlx_core::pool::Pool<sqlx_core::mysql::database::MySql>`
found struct `Pool<byted_sqlx::sqlx::MySql>`
= note: perhaps two different versions of crate `sqlx_core` are being used?
For more information about this error, try `rustc --explain E0308`.
|
Beta Was this translation helpful? Give feedback.
Answered by
billy1624
Dec 10, 2021
Replies: 1 comment 2 replies
-
Hey @lz1998, I guess you are using two different versions of SQLx in your workspace? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lz1998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @lz1998, I guess you are using two different versions of SQLx in your workspace?