Resolve manual_str_repeat clippy lint

This commit is contained in:
David Tolnay 2021-10-01 01:11:06 -04:00
parent 019041e4d5
commit 9298f54ace
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -5,7 +5,6 @@
clippy::float_cmp,
clippy::items_after_statements,
clippy::let_underscore_drop,
clippy::manual_str_repeat,
clippy::shadow_unrelated,
clippy::too_many_lines,
clippy::unreadable_literal,
@ -1827,7 +1826,7 @@ fn test_stack_overflow() {
.collect();
let _: Value = from_str(&brackets).unwrap();
let brackets: String = iter::repeat('[').take(129).collect();
let brackets = "[".repeat(129);
test_parse_err::<Value>(&[(&brackets, "recursion limit exceeded at line 1 column 128")]);
}