Morgan

Results 5 comments of Morgan

Here is a minimal example of a similar issue, but instead caused by the use of `#[serde(flatten)]` on structs: https://gist.github.com/mxndtaylor/488db8ca053d8d69e72fa0fc4f5d0a23 ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a8b5f1dbcacaca9113e713fbe93c3870)) Is it possible this has the same root cause?...

Oh... yeah that would make it difficult to test any solution. Well, I can offer to test it myself if you come up with something, time permitting. I thought it...

Since the method essentially accepts a byte array, I figured [`is_ascii_whitespace()`](https://doc.rust-lang.org/core/primitive.u8.html#method.is_ascii_whitespace) is good enough? If it's non-ascii, it'd be considerably more effort to remove in the general case, but the...

Added a PR mostly to demonstrate what I mean. It's still needs some tests and checks run. Another reasonable addition to it could be to add a warning or an...

So I've looked into this, and there seems to be an issue with `serde`. Specifically, a `struct` that has a `#[serde(flatten)]` property of `BTreeMap` doesn't automatically cast numbers to `String`s,...