1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

lint: fix clippy::manual_str_repeat in parse_glob.rs

This commit is contained in:
Krysztal112233 2024-03-22 00:02:04 +08:00
parent fd3640482b
commit 2b5e7caf8b
No known key found for this signature in database
GPG key ID: 331615739A596A02

View file

@ -97,7 +97,7 @@ mod tests {
// test that we don't look for closing square brackets unnecessarily
// Verifies issue #5584
let chars = std::iter::repeat("^[").take(174571).collect::<String>();
let chars = "^[".repeat(174571);
assert_eq!(fix_negation(chars.as_str()), chars);
}