We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6666499 commit ad0f157Copy full SHA for ad0f157
json/src/uint.rs
@@ -33,32 +33,32 @@ impl From<Uint> for U256 {
33
34
impl From<Uint> for u64 {
35
fn from(f: Uint) -> Self {
36
- Self::from(f.0)
+ f.0.as_u64()
37
}
38
39
40
impl From<Uint> for u32 {
41
42
+ f.0.as_u32()
43
44
45
46
impl From<Uint> for u16 {
47
48
- u64::from(f.0) as u16
+ u64::from(f) as u16
49
50
51
52
impl From<Uint> for u8 {
53
54
- u64::from(f.0) as u8
+ u64::from(f) as u8
55
56
57
58
impl From<Uint> for usize {
59
60
// TODO: clean it after util conversions refactored.
61
- u64::from(f.0) as usize
+ f.0.as_usize()
62
63
64
0 commit comments