Move MAX_BUFFER_LENGTH

This commit is contained in:
sharkdp 2020-04-03 11:51:50 +02:00 committed by David Peter
parent 9ef9bf7b80
commit c79d1638f5
2 changed files with 4 additions and 4 deletions

View file

@ -17,9 +17,6 @@ pub fn osstr_to_bytes(input: &OsStr) -> Cow<[u8]> {
}
}
/// Maximum size of the output buffer before flushing results to the console
pub const MAX_BUFFER_LENGTH: usize = 1000;
/// Traverse args_os, looking for -exec and replacing it with --exec.
///
/// # Returns

View file

@ -1,7 +1,7 @@
use crate::exec;
use crate::exit_codes::{merge_exitcodes, ExitCode};
use crate::fshelper;
use crate::internal::{osstr_to_bytes, MAX_BUFFER_LENGTH};
use crate::internal::osstr_to_bytes;
use crate::options::Options;
use crate::output;
@ -37,6 +37,9 @@ pub enum WorkerResult {
Error(ignore::Error),
}
/// Maximum size of the output buffer before flushing results to the console
pub const MAX_BUFFER_LENGTH: usize = 1000;
/// Recursively scan the given search path for files / pathnames matching the pattern.
///
/// If the `--exec` argument was supplied, this will create a thread pool for executing