Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allow-mixed-uninlined-format-args = false
array-size-threshold = 65538
avoid-breaking-exported-api = false
check-private-items = true
cognitive-complexity-threshold = 24
missing-docs-in-crate-items = true
allow-mixed-uninlined-format-args = false
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,6 @@ collapsible_if = { level = "allow", priority = 127 } # remove me
# | jq -r '.message.code.code | select(. != null and startswith("clippy::"))' \
# | sort | uniq -c | sort -h -r
#
# TODO:
# remove large_stack_arrays when https://github.com/rust-lang/rust-clippy/issues/13774 is fixed
#
all = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
Expand All @@ -748,7 +745,6 @@ cast_precision_loss = "allow" # 52
cast_lossless = "allow" # 35
ignored_unit_patterns = "allow" # 21
similar_names = "allow" # 20
large_stack_arrays = "allow" # 20
needless_pass_by_value = "allow" # 16
float_cmp = "allow" # 12
items_after_statements = "allow" # 11
Expand Down
2 changes: 1 addition & 1 deletion src/uu/wc/src/count_fast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Loading