Skip to content

Commit 08456b5

Browse files
authored
Merge pull request #55 from simd-lite/pre-0.10.1-cleanup
pre 0.10.1 cleanup
2 parents 11a6035 + ef90d4f commit 08456b5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ rust-version = "1.64"
1515
itoa = "1"
1616
ryu = "1"
1717
halfbrown = { version = "0.2", optional = true }
18-
float-cmp = "0.9"
18+
float-cmp = "0.10"
1919
ordered-float = { version = "4", optional = true }
20-
hashbrown = { version = "0.14", optional = true }
20+
hashbrown = { version = "0.15", optional = true }
2121
abi_stable = { version = "0.11.0", optional = true, default-features = false }
2222

2323
[features]

src/node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl ValueAsScalar for StaticNode {
157157
Self::I128(i) => Some(*i),
158158
Self::U128(i) => i128::try_from(*i).ok(),
159159
Self::I64(i) => Some(i128::from(*i)),
160-
Self::U64(i) => i128::try_from(*i).ok(),
160+
Self::U64(i) => Some(i128::from(*i)),
161161
_ => None,
162162
}
163163
}
@@ -227,6 +227,7 @@ impl ValueAsScalar for StaticNode {
227227
#[allow(clippy::cast_precision_loss)]
228228
fn cast_f64(&self) -> Option<f64> {
229229
match self {
230+
#[allow(clippy::useless_conversion)] // .into() required by ordered-float
230231
Self::F64(i) => Some((*i).into()),
231232
Self::I64(i) => Some(*i as f64),
232233
Self::U64(i) => Some(*i as f64),

0 commit comments

Comments
 (0)