Skip to content

Commit 4edfb02

Browse files
committed
clippy: lower array-size-threshold to 128 KiB
1 parent b737b96 commit 4edfb02

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
allow-mixed-uninlined-format-args = false
2-
array-size-threshold = 262144
2+
array-size-threshold = 131072
33
avoid-breaking-exported-api = false
44
check-private-items = true
55
cognitive-complexity-threshold = 24

src/uu/wc/src/count_fast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use libc::S_IFIFO;
2929
#[cfg(any(target_os = "linux", target_os = "android"))]
3030
use uucore::pipes::{MAX_ROOTLESS_PIPE_SIZE, pipe, splice, splice_exact};
3131

32-
const BUF_SIZE: usize = 256 * 1024;
32+
const BUF_SIZE: usize = 128 * 1024;
3333

3434
/// This is a Linux-specific function to count the number of bytes using the
3535
/// `splice` system call, which is faster than using `read`.

0 commit comments

Comments
 (0)