mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
remove clippy allow; fmt
This commit is contained in:
parent
20761fe422
commit
276b115c02
1 changed files with 1 additions and 2 deletions
|
@ -353,7 +353,6 @@ fn cut_fields_whitespace<R: Read>(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn cut_fields<R: Read>(reader: R, ranges: &[Range], opts: &FieldOptions) -> UResult<()> {
|
||||
let newline_char = if opts.zero_terminated { b'\0' } else { b'\n' };
|
||||
match opts.delimiter {
|
||||
|
@ -362,7 +361,7 @@ fn cut_fields<R: Read>(reader: R, ranges: &[Range], opts: &FieldOptions) -> URes
|
|||
ranges,
|
||||
opts.only_delimited,
|
||||
newline_char,
|
||||
opts.out_delimiter.as_deref().unwrap_or("\t")
|
||||
opts.out_delimiter.as_deref().unwrap_or("\t"),
|
||||
),
|
||||
Delimiter::String(ref delimiter) => {
|
||||
if let Some(ref o_delim) = opts.out_delimiter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue