Skip to content
Myr

Move MAX_BUFFER_LENGTH

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 9ef9bf7 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:src/internal/mod.rs-3 removed
15 unmodified lines
16 Cow::Borrowed(string) => Cow::Borrowed(string.as_bytes()),17 }18}1920/// Maximum size of the output buffer before flushing results to the console21pub const MAX_BUFFER_LENGTH: usize = 1000;2220/// Traverse args_os, looking for -exec and replacing it with --exec.21///22/// # Returns23///
110 unmodified lines
modified:src/walk.rs+4 added-1 removed
1use crate::exec;2use crate::exit_codes::{merge_exitcodes, ExitCode};3use crate::fshelper;4use crate::internal::{osstr_to_bytes, MAX_BUFFER_LENGTH};4use crate::internal::osstr_to_bytes;5use crate::options::Options;6use crate::output;78use std::borrow::Cow;
27 unmodified lines
36 Entry(PathBuf),37 Error(ignore::Error),38}3940/// Maximum size of the output buffer before flushing results to the console41pub const MAX_BUFFER_LENGTH: usize = 1000;4243/// Recursively scan the given search path for files / pathnames matching the pattern.44///45/// If the `--exec` argument was supplied, this will create a thread pool for executing46/// jobs in parallel from a given command line and the discovered paths. Otherwise, each
400 unmodified lines