Skip to content

Commit 4704cae

Browse files
xtqqczzecakebaker
authored andcommitted
clippy: lower array-size-threshold to ~64 KiB
1 parent 40070ca commit 4704cae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.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 = 65538
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 = 64 * 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)