1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

expr: Fix cargo fmt of src/uu/expr/src/syntax_tree.rs

This commit is contained in:
Joseph Jon Booker 2025-01-19 05:24:41 -06:00
parent 8c27c7f3f2
commit 1e0f697ab0

View file

@ -210,8 +210,8 @@ fn check_posix_regex_errors(pattern: &str) -> ExprResult<()> {
escaped_braces = escaped_braces
.checked_sub(1)
.ok_or(ExprError::UnmatchedClosingBrace)?;
let mut repetition = repeating_pattern_text[..repeating_pattern_text.len() - 1]
.splitn(2, ',');
let mut repetition =
repeating_pattern_text[..repeating_pattern_text.len() - 1].splitn(2, ',');
match (
repetition
.next()