When parsing something like:
number = 1000 into a u8 I'm getting:
error: proc-macro derive panicked
= help: message: called `Result::unwrap()` on an `Err` value: Error("number too large to fit in target type")
This presumably comes from this unwrap:
|
Lit::Int(ref s) => Ok(s.base10_parse::<$ty>().unwrap()), |
Quoting from the docs:
... darling prefers not to fail on the first error it encounters, instead doing as much work as it can, accumulating errors into a single report.
It would be great to replace the unwrap with the usual error handling
When parsing something like:
number = 1000into au8I'm getting:This presumably comes from this
unwrap:darling/core/src/from_meta.rs
Line 231 in 78f3d11
Quoting from the docs:
It would be great to replace the
unwrapwith the usual error handling