mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
lint: fix clippy::manual_str_repeat
in parse_glob.rs
This commit is contained in:
parent
fd3640482b
commit
2b5e7caf8b
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ mod tests {
|
||||||
|
|
||||||
// test that we don't look for closing square brackets unnecessarily
|
// test that we don't look for closing square brackets unnecessarily
|
||||||
// Verifies issue #5584
|
// Verifies issue #5584
|
||||||
let chars = std::iter::repeat("^[").take(174571).collect::<String>();
|
let chars = "^[".repeat(174571);
|
||||||
assert_eq!(fix_negation(chars.as_str()), chars);
|
assert_eq!(fix_negation(chars.as_str()), chars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue