diff --git a/Cargo.toml b/Cargo.toml index 18b10b8..5263c68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,9 @@ rust-version = "1.64" itoa = "1" ryu = "1" halfbrown = { version = "0.2", optional = true } -float-cmp = "0.9" +float-cmp = "0.10" ordered-float = { version = "4", optional = true } -hashbrown = { version = "0.14", optional = true } +hashbrown = { version = "0.15", optional = true } abi_stable = { version = "0.11.0", optional = true, default-features = false } [features] diff --git a/src/node.rs b/src/node.rs index a93f685..4543902 100644 --- a/src/node.rs +++ b/src/node.rs @@ -157,7 +157,7 @@ impl ValueAsScalar for StaticNode { Self::I128(i) => Some(*i), Self::U128(i) => i128::try_from(*i).ok(), Self::I64(i) => Some(i128::from(*i)), - Self::U64(i) => i128::try_from(*i).ok(), + Self::U64(i) => Some(i128::from(*i)), _ => None, } } @@ -227,6 +227,7 @@ impl ValueAsScalar for StaticNode { #[allow(clippy::cast_precision_loss)] fn cast_f64(&self) -> Option { match self { + #[allow(clippy::useless_conversion)] // .into() required by ordered-float Self::F64(i) => Some((*i).into()), Self::I64(i) => Some(*i as f64), Self::U64(i) => Some(*i as f64),