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 seems to be adapted from `format/json.rs:from_json_value()`.
- I adjusted the order of matched types to mirror that of `format/json.rs`.
- `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.
- Potential Improvement: Adopt the iter + collect pattern used by other formats
instead of the `for` loop used for array and object types here.
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
0 commit comments