Open ghostinushanka opened 2 years ago
Hey, thanks for filing the issue! This one seems pretty interesting, in that it doesn't seem like there's necessarily a bug, but a better type definition for either or both of these types would help. In this case, the diff between None -> Some(T) is Some(T::Diff), but it's probably preferable to just let that be Some(T) with a cloned value. Although I need to consider the cases that yields when applying other diffs to this type
Hello @BenHall-7 ,
Playing with the lib I've come across inconsistent behavior for structs containing
String
types. Example:Expected output:
Actual output (note how instead of
Some(String)
we're gettingSome(Some(String))
Make it
Option<Vec<String>>
(or other compound type for that matter) and the end result is even more interesting.