Skip to content

fix(codegen): Take into account default=... when skip_deserializing #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2016
Merged

fix(codegen): Take into account default=... when skip_deserializing #283

merged 1 commit into from
Apr 13, 2016

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Apr 13, 2016

This addresses the bug pointed out by @erickt in #265 (comment).

@erickt erickt merged commit 65e3664 into serde-rs:master Apr 13, 2016
@dtolnay dtolnay deleted the defaultskip branch April 13, 2016 16:51
rubdos pushed a commit to rubdos/serde that referenced this pull request Jun 20, 2017
Add new traits for reference and assignment operators

There are two new "utility" traits covering the basic operators:
`Add`, `Sub`, `Mul`, `Div`, and `Rem`.

- `NumOps<Rhs, Output>`: operators with an arbitrary operand and output.
- `NumAssignOps<Rhs>`: assignment operators with an arbitrary operand.

Then the new collection of numeric traits are:

- `Num`: effectively unchanged, just taking operands by value.
- `NumRef`: `Num` adding reference operands on the right side.
- `RefNum`: `&T` operators, with either `T` or `&T` on the right side.
  - This does not specify `T: Num`, as rust-lang/rust#20671 means that
    could only add a constraint, without implying its presence for use.
- `NumAssign`: `Num` adding assignment operators by value.
- `NumAssignRef`: `NumAssign` adding reference assignment operators.
  - Nothing actually implements this yet!

Acknowledgement: this is roughly based on [@andersk's suggestion](rust-num/num#94 (comment)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants