mirror of
https://github.com/sharkdp/fd
synced 2024-09-05 16:23:47 +00:00
Move MAX_BUFFER_LENGTH
This commit is contained in:
parent
9ef9bf7b80
commit
c79d1638f5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue