Skip to content

Commit

Permalink
Merge pull request #3971 from Ten0/fix_missing_skip_insertion_attribu…
Browse files Browse the repository at this point in the history
…te_in_unknown_attribute_error

Fix missing attributes in "unknown attribute" error
  • Loading branch information
weiznich committed Apr 19, 2024
1 parent 26b8803 commit 45915ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: unknown attribute, expected one of `aggregate`, `not_sized`, `foreign_der
5 | #[diesel(what = true)]
| ^^^^

error: unknown attribute, expected one of `embed`, `column_name`, `sql_type`, `serialize_as`, `deserialize_as`, `select_expression`, `select_expression_type`
error: unknown attribute, expected one of `embed`, `skip_insertion`, `column_name`, `sql_type`, `treat_none_as_default_value`, `treat_none_as_null`, `serialize_as`, `deserialize_as`, `select_expression`, `select_expression_type`
--> tests/fail/derive/unknown_attribute.rs:12:14
|
12 | #[diesel(what = true)]
Expand Down
3 changes: 3 additions & 0 deletions diesel_derives/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@ impl Parse for FieldAttr {
&name,
&[
"embed",
"skip_insertion",
"column_name",
"sql_type",
"treat_none_as_default_value",
"treat_none_as_null",
"serialize_as",
"deserialize_as",
"select_expression",
Expand Down

0 comments on commit 45915ac

Please sign in to comment.