From af00163989936a137b80444289c2a68fbf765fdb Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Mon, 24 Jul 2023 23:02:19 +0200 Subject: [PATCH] feat: implement TryFrom --- CHANGELOG.md | 1 + src/from.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21069c6d..56bbb4fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Introduce `ark-ff-04` feature flag for conversion to `ark-ff@0.4` types. - Support for [`alloy-rlp`](https://github.com/alloy-rs/rlp) - MSRV (Minimum Supported Rust Version) is now set at 1.65.0, from previously undefined. +- Implement `TryFrom` for `Uint` ### Changed diff --git a/src/from.rs b/src/from.rs index fef9cb7c..9bfa0e19 100644 --- a/src/from.rs +++ b/src/from.rs @@ -382,6 +382,7 @@ macro_rules! impl_from_unsigned_int { }; } +impl_from_unsigned_int!(bool); impl_from_unsigned_int!(u8); impl_from_unsigned_int!(u16); impl_from_unsigned_int!(u32);