File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ rust-version = "1.64"
15
15
itoa = " 1"
16
16
ryu = " 1"
17
17
halfbrown = { version = " 0.2" , optional = true }
18
- float-cmp = " 0.9 "
18
+ float-cmp = " 0.10 "
19
19
ordered-float = { version = " 4" , optional = true }
20
- hashbrown = { version = " 0.14 " , optional = true }
20
+ hashbrown = { version = " 0.15 " , optional = true }
21
21
abi_stable = { version = " 0.11.0" , optional = true , default-features = false }
22
22
23
23
[features ]
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl ValueAsScalar for StaticNode {
157
157
Self :: I128 ( i) => Some ( * i) ,
158
158
Self :: U128 ( i) => i128:: try_from ( * i) . ok ( ) ,
159
159
Self :: I64 ( i) => Some ( i128:: from ( * i) ) ,
160
- Self :: U64 ( i) => i128:: try_from ( * i) . ok ( ) ,
160
+ Self :: U64 ( i) => Some ( i128:: from ( * i) ) ,
161
161
_ => None ,
162
162
}
163
163
}
@@ -227,6 +227,7 @@ impl ValueAsScalar for StaticNode {
227
227
#[ allow( clippy:: cast_precision_loss) ]
228
228
fn cast_f64 ( & self ) -> Option < f64 > {
229
229
match self {
230
+ #[ allow( clippy:: useless_conversion) ] // .into() required by ordered-float
230
231
Self :: F64 ( i) => Some ( ( * i) . into ( ) ) ,
231
232
Self :: I64 ( i) => Some ( * i as f64 ) ,
232
233
Self :: U64 ( i) => Some ( * i as f64 ) ,
You can’t perform that action at this time.
0 commit comments