Error during build: std::clone::Clone
is not implemented for sea_orm::DatabaseConnection
#411
-
In the dependencies of Cargo.toml:
Relevant code:
...
...
Any idea to why I could get this error during build? From the source code and examples I see that the Clone trait IS implemented for DatabaseConnection. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @DavidFreire-FEUP, this error occured because you have sea-orm/src/database/db_connection.rs Lines 16 to 34 in da21e79 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast response. I had forgot to disable default features! Sorry for the newbie mistake and thank you so much again :) |
Beta Was this translation helpful? Give feedback.
-
Welcome :P |
Beta Was this translation helpful? Give feedback.
Hey @DavidFreire-FEUP, this error occured because you have
mock
feature enabled. If you don't need mock connection, then you could opt-out frommock
feature.sea-orm/src/database/db_connection.rs
Lines 16 to 34 in da21e79