Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTraits Expression and NotNull are not implemented by Uuid #881
Comments
This comment has been minimized.
|
Can you ensure that there is only one version of |
This comment has been minimized.
m-r-r
commented
May 1, 2017
|
Thanks for responding so fast!
If I am not mistaken, there is one version of $ grep uuid
"uuid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
name = "uuid"
"checksum uuid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7cfec50b0842181ba6e713151b72f4ec84a6a7e2c9c8a8a3ffc37bb1cd16b231"I use the same version requirement as uuid = ">= 0.2.0, < 0.5.0" |
This comment has been minimized.
|
Remove the |
This comment has been minimized.
m-r-r
commented
May 1, 2017
It works ! Thanks for your help :-) |
m-r-r commentedMay 1, 2017
Hello,
My model contains several structs which need to derive both
InsertableandQueryable.Here is one of those structs:
The compilation fails with the following error messages:
This is only an excerpt of the full error message, the full error message is here.
I'm using
diesel0.12 with featurespostgres,chronoanduuid.I created a gist with the full source code of my model and the SQL schema: https://gist.github.com/m-r-r/5571d1da8cea8ea52759c5fb9bbb7072
I don't understand why I get this error: according to the documentation, the type
Uuiddoes implementNotNullandAsExpression… Maybe I'm not using the macros correctly?