Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser committed Oct 22, 2024
1 parent 11a6035 commit ef90d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down Expand Up @@ -227,6 +227,7 @@ impl ValueAsScalar for StaticNode {
#[allow(clippy::cast_precision_loss)]
fn cast_f64(&self) -> Option<f64> {
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),
Expand Down

0 comments on commit ef90d4f

Please sign in to comment.