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 upAsChangeset works on a struct that only consists of primary keys on nightly #544
Comments
This comment has been minimized.
|
This can be closed now that #1074 has landed. |
Eijebong
closed this
Aug 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drakulix commentedDec 13, 2016
Deriving AsChangeset works with the proc-macro code-generation, but not via syntex/macro generation, if
fieldsturns out to be empty. This happens if the struct contains nothing but primary keys (e.g. n:m relation tables).Having an AsChangeset implementation on such a struct is of course not very useful and should most likely not be supported. I just noticed this inconsistency and think it should be fixed.