-
Notifications
You must be signed in to change notification settings - Fork 11
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
optional: allow duplicate if statements #115
Conversation
Hi ! Thank you for your help :)
and in the code :
When converting into bytes, |
Wouldn't you be able to check in serialization that you would be not setting the flag or overwriting the flag and thus violating serialization.
|
That's definitely possible, but currently unimplemented. |
I've added the check as suggested, feel free to give some recommendations. I'm quite new to Rust. The following code will be generated if there are 2 conditions.
|
|
Hi @hchataing thanks for all the suggestions, I've applied them and cleaned the code a bit. However I'm stuck on the
Do you know to get a more verbose error from this? |
b818532
to
0dd94c6
Compare
@hchataing I've got the tests working now, could you do another review pass? |
Just a couple of nitpicks in the test, but happy with the result :) |
0dd94c6
to
eb1d02c
Compare
Can you please squash the two commits before merging ? |
Introduces double condition check serialization using InconsistentConditionValue
eb1d02c
to
a8e800d
Compare
No problem, just squashed the commits and pushed again. |
Great, I will push a new version to crates.io as soon as it is merged. |
I've got the following usecase requiring me to use
if
twiceRight now
check_optional_fields
disallows this while it's working perfectly fine.This PR removes the check and allows the use of an
if
condition.