From a29ddea4e9ebf82b8c552bbdb79b6b0077900249 Mon Sep 17 00:00:00 2001 From: clint Date: Thu, 9 Nov 2023 15:58:12 -0500 Subject: [PATCH] expand: clarify tabstops argument name for `expand_line` --- src/uu/expand/src/expand.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uu/expand/src/expand.rs b/src/uu/expand/src/expand.rs index 4815c5f68..99b9d6b81 100644 --- a/src/uu/expand/src/expand.rs +++ b/src/uu/expand/src/expand.rs @@ -366,10 +366,11 @@ enum CharType { Other, } +#[allow(clippy::cognitive_complexity)] fn expand_line( buf: &mut Vec, output: &mut BufWriter, - ts: &[usize], + tabstops: &[usize], options: &Options, ) -> std::io::Result<()> { use self::CharType::*; @@ -415,7 +416,7 @@ fn expand_line( match ctype { Tab => { // figure out how many spaces to the next tabstop - let nts = next_tabstop(ts, col, &options.remaining_mode); + let nts = next_tabstop(tabstops, col, &options.remaining_mode); col += nts; // now dump out either spaces if we're expanding, or a literal tab if we're not