-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow implementing core::error::Error
when available
#184
base: master
Are you sure you want to change the base?
Conversation
00425b9
to
be8fbcd
Compare
I think its good lib.rs use nutype::nutype;
#[nutype(validate(finite))]
struct A(f32); Cargo.toml [dependencies]
nutype = { path = "../nutype/nutype" } Outputs of
|
@vic1707 Hi thanks for your PRs. |
No problem take your time 👍 |
Added the |
rust 1.81.0 made
std::error::Error
available in core.Users with that version or higher should be getting the
Error
impl no matter ifstd
feature is enabled.fixes #179 without introducing a breaking change