1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

maint: remove trailing commas from matches

Trailing commas are only supported starting from 1.48.
This commit is contained in:
Michael Debertol 2021-05-28 18:58:06 +02:00
parent a9e0208ee2
commit b5cbd506bc
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ impl NumInfo {
if matches!( if matches!(
parse_settings.thousands_separator, parse_settings.thousands_separator,
Some(c) if c == char, Some(c) if c == char
) { ) {
continue; continue;
} }

View file

@ -585,7 +585,7 @@ impl FieldSelector {
&& to.is_none() && to.is_none()
&& !matches!( && !matches!(
settings.mode, settings.mode,
SortMode::Numeric | SortMode::GeneralNumeric | SortMode::HumanNumeric, SortMode::Numeric | SortMode::GeneralNumeric | SortMode::HumanNumeric
), ),
needs_tokens: from.field != 1 || from.char == 0 || to.is_some(), needs_tokens: from.field != 1 || from.char == 0 || to.is_some(),
from, from,