Closed lunabunn closed 1 year ago
Since I'm still new to Rust, PRs to make the code more idiomatic are welcome 😄
I tried adding error types: #7 However, I'm not sure if this is natural from the perspective of Rust's conventions.
I've reviewed some error-related docs, and it seems fine, so I'll merge it and close this issue.
It would be much easier for downstream crates to handle errors if they were returned as
enum
s rather than String errors in the formBox<dyn Error>
. Not only are the current errors impossible to match on, they are also incompatible with error handling solutions such asanyhow
.If this change would be welcome, I would be willing to PR it?