mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
clippy: lower array-size-threshold to ~64 KiB
This commit is contained in:
committed by
Daniel Hofstetter
parent
40070cadfc
commit
4704caee08
+1
-1
@@ -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
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user