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
I thought I saw an existing bug report, but now I can't find it. So apologies if this is a duplicate.
11:25:57 [cargo] error[E0119]: conflicting implementations of trait `Clone` for type `database::schema::sql_types::ConsumableUnit
--> src/server/database/schema.rs:4:46
|
4 | #[derive(diesel::query_builder::QueryId, Clone, diesel::sql_types::SqlType)]
| ^^^^^ conflicting implementation for `database::schema::sql_types::ConsumableUnit
|
::: src/server/database/models/consumables.rs:11:10
|
11 | #[derive(diesel_derive_enum::DbEnum, Debug)]
| -------------------------- first implementation here
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info
11:25:59 [cargo] For more information about this error, try `rustc --explain E0119`.
Deleting the Clone by hand from the schema.rs file fixes the problem. But will come back when the file is regenerated again.
I am guessing what happened is that previously the auto-generated file did not add the Clone trait, and it was required, so the DbEnum macro added it. But now the auto-generated file does have the Clone trait and the two conflict.
The text was updated successfully, but these errors were encountered:
I thought I saw an existing bug report, but now I can't find it. So apologies if this is a duplicate.
My schema.rs has:
The other file has:
Deleting the
Clone
by hand from the schema.rs file fixes the problem. But will come back when the file is regenerated again.I am guessing what happened is that previously the auto-generated file did not add the Clone trait, and it was required, so the
DbEnum
macro added it. But now the auto-generated file does have the Clone trait and the two conflict.The text was updated successfully, but these errors were encountered: