-
Notifications
You must be signed in to change notification settings - Fork 23
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
Apply Option difference to None
target doesn't work as expected
#28
Comments
@kabergstrom Any idea why that could be? serde-diff/src/implementation.rs Line 345 in e461da4
|
@User-TGK Actually, I think you're applying it wrongly (@kabergstrom Correct me if I'm wrong): I ran into a similar issue here: #16 (comment) |
Thanks for the info @Boscop. The workaround I currently use is replacing the following line with the snippet below. serde-diff/src/implementation.rs Line 383 in e461da4
I didn't look into the implementation details of the library so I am not sure whether this will cause issues, but it does the trick for now. |
Example to reproduce the issue
Expected result
For target to equal
TestStruct { a: Some(10) }
Actual result
Target equals
TestStruct { a: None }
The text was updated successfully, but these errors were encountered: