From 7f61daa3a218dd19067e47e56ddb69a6e89cd9ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 23:22:31 +0000 Subject: [PATCH 1/2] Update zstd requirement from 0.13.0 to 0.14.0 Updates the requirements on [zstd](https://github.com/gyscos/zstd-rs) to permit the latest version. - [Release notes](https://github.com/gyscos/zstd-rs/releases) - [Commits](https://github.com/gyscos/zstd-rs/compare/v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: zstd dependency-version: 0.14.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- tsar-rs/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsar-rs/Cargo.toml b/tsar-rs/Cargo.toml index 51ad741..063c87d 100644 --- a/tsar-rs/Cargo.toml +++ b/tsar-rs/Cargo.toml @@ -16,7 +16,7 @@ sha1 = "0.11.0" smallvec = "1.9.0" thiserror = "2.0.1" zip = { version = "8.1.0", default-features = false, features = ["deflate"] } -zstd = "0.13.0" +zstd = "0.14.0" [target.'cfg(windows)'.dependencies] zfp-sys-cc = "0.2.0" From 8cad60f8e8b24a19494d2cf55b54f6ad7aa29164 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 8 Sep 2026 04:17:52 +0000 Subject: [PATCH 2/2] Fix clippy chunks_exact_to_as_chunks lint in data_type.rs Co-authored-by: brian14708 <357794+brian14708@users.noreply.github.com> --- tsar-rs/src/data_type.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tsar-rs/src/data_type.rs b/tsar-rs/src/data_type.rs index 4dfb28c..3d760a1 100644 --- a/tsar-rs/src/data_type.rs +++ b/tsar-rs/src/data_type.rs @@ -138,19 +138,19 @@ impl DataType { match self { DataType::Byte => { const N: usize = std::mem::size_of::(); - let src_it = src.chunks_exact(N); - let targ_it = targ.chunks_exact(N); - let mut err = src_it - .remainder() + let (src_chunks, src_rem) = src.as_chunks::(); + let (targ_chunks, targ_rem) = targ.as_chunks::(); + let mut err = src_rem .iter() - .zip(targ_it.remainder().iter()) + .zip(targ_rem.iter()) .map(|(src, targ)| (targ ^ src).count_ones()) .sum::() as f64; - err += src_it - .zip(targ_it) + err += src_chunks + .iter() + .zip(targ_chunks.iter()) .map(|(src, targ)| { - let src = ::from_le_bytes(src.try_into().unwrap()); - let targ = ::from_le_bytes(targ.try_into().unwrap()); + let src = ::from_le_bytes(*src); + let targ = ::from_le_bytes(*targ); (targ ^ src).count_ones() }) .sum::() as f64;