You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method looks strongly adapted from the `from_json_value` method in `format/json.rs`.
- The ordering was different, so I adjusted it to reflect the same match ordering used in the json format parser.
- `val` => `value`
- No need to dereference values, in this case we consume the `value` parameter, rather than expect a reference to borrow. No need to use `ref` or `clone()` to create owned values.
- Could adopt the iter + collect pattern used by other formats instead of the for loop used for array and object types.
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
0 commit comments