From 4704caee08fe93b75db9a676745b30f66f3f0102 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 16 Apr 2026 22:05:14 +0100 Subject: [PATCH] clippy: lower array-size-threshold to ~64 KiB --- .clippy.toml | 2 +- src/uu/wc/src/count_fast.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index dc3347cd6..9eedc78ec 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,5 +1,5 @@ allow-mixed-uninlined-format-args = false -array-size-threshold = 262144 +array-size-threshold = 65538 avoid-breaking-exported-api = false check-private-items = true cognitive-complexity-threshold = 24 diff --git a/src/uu/wc/src/count_fast.rs b/src/uu/wc/src/count_fast.rs index 79c9f8227..b84ac634e 100644 --- a/src/uu/wc/src/count_fast.rs +++ b/src/uu/wc/src/count_fast.rs @@ -29,7 +29,7 @@ use libc::S_IFIFO; #[cfg(any(target_os = "linux", target_os = "android"))] use uucore::pipes::{MAX_ROOTLESS_PIPE_SIZE, pipe, splice, splice_exact}; -const BUF_SIZE: usize = 256 * 1024; +const BUF_SIZE: usize = 64 * 1024; /// This is a Linux-specific function to count the number of bytes using the /// `splice` system call, which is faster than using `read`.