mirror of
https://github.com/serde-rs/json.git
synced 2026-01-19 23:25:49 +00:00
Resolve manual_str_repeat clippy lint
This commit is contained in:
parent
019041e4d5
commit
9298f54ace
@ -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")]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user