From dfd1d7606369fb685a0e0d8e7b5fa0c316deea9d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Feb 2026 18:15:46 +0000 Subject: [PATCH 1/3] Update rand requirement from 0.9 to 0.10 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...0.10.0) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index adf1c7f..62a15c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ no-panic = { version = "0.1", optional = true } [dev-dependencies] num_cpus = "1.8" -rand = "0.9" +rand = "0.10" rand_xorshift = "0.4" criterion = "0.5" From 6d69821e398cc1659a32e4db25b25d7f1ad5576c Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Sat, 28 Feb 2026 12:20:35 -0600 Subject: [PATCH 2/3] bump deps --- Cargo.toml | 4 ++-- benches/bench.rs | 3 +++ examples/upstream_benchmark.rs | 2 +- tests/s2f_test.rs | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 62a15c7..018a198 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,8 +25,8 @@ no-panic = { version = "0.1", optional = true } [dev-dependencies] num_cpus = "1.8" rand = "0.10" -rand_xorshift = "0.4" -criterion = "0.5" +rand_xorshift = "0.5" +criterion = "0.8" [lib] bench = false diff --git a/benches/bench.rs b/benches/bench.rs index ffd24b8..0036369 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -6,6 +6,7 @@ clippy::unreadable_literal )] +#[allow(deprecated)] use criterion::{black_box, criterion_group, criterion_main, Criterion}; use std::io::Write; @@ -17,6 +18,7 @@ macro_rules! benches { pub fn $name(c: &mut Criterion) { let mut buf = ryu_js::Buffer::new(); + #[allow(deprecated)] c.bench_function(concat!("ryu_js_", stringify!($name)), move |b| b.iter(move || { let value = black_box($value); let formatted = buf.format_finite(value); @@ -33,6 +35,7 @@ macro_rules! benches { pub fn $name(c: &mut Criterion) { let mut buf = Vec::with_capacity(20); + #[allow(deprecated)] c.bench_function(concat!("std_fmt_", stringify!($name)), move |b| b.iter(|| { buf.clear(); let value = black_box($value); diff --git a/examples/upstream_benchmark.rs b/examples/upstream_benchmark.rs index 8e227de..8e33a6e 100644 --- a/examples/upstream_benchmark.rs +++ b/examples/upstream_benchmark.rs @@ -1,6 +1,6 @@ // cargo run --example upstream_benchmark --release -use rand::{Rng, SeedableRng}; +use rand::{RngExt, SeedableRng}; const SAMPLES: usize = 10000; const ITERATIONS: usize = 1000; diff --git a/tests/s2f_test.rs b/tests/s2f_test.rs index 5bae935..23da8c1 100644 --- a/tests/s2f_test.rs +++ b/tests/s2f_test.rs @@ -23,7 +23,6 @@ clippy::cast_lossless, clippy::cast_possible_truncation, clippy::cast_possible_wrap, - clippy::cast_possible_wrap, clippy::cast_sign_loss, clippy::checked_conversions, clippy::float_cmp, From 373d9adbdda8269b0eac3f17fe0c32dc5fba6abc Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Sat, 28 Feb 2026 12:27:52 -0600 Subject: [PATCH 3/3] cargo clippy --- src/buffer/mod.rs | 2 +- src/f2s.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs index 1c3f593..5c47a74 100644 --- a/src/buffer/mod.rs +++ b/src/buffer/mod.rs @@ -119,9 +119,9 @@ impl Buffer { } } +#[allow(clippy::non_canonical_clone_impl)] impl Clone for Buffer { #[inline] - #[allow(clippy::non_canonical_clone_impl)] // false positive https://github.com/rust-lang/rust-clippy/issues/11072 fn clone(&self) -> Self { Buffer::new() } diff --git a/src/f2s.rs b/src/f2s.rs index 987fefb..24ac81b 100644 --- a/src/f2s.rs +++ b/src/f2s.rs @@ -143,7 +143,6 @@ pub fn f2d(ieee_mantissa: u32, ieee_exponent: u32) -> FloatingDecimal32 { vr_is_trailing_zeros &= last_removed_digit == 0; last_removed_digit = (vr % 10) as u8; vr /= 10; - vp /= 10; vm /= 10; removed += 1; }