From 9298f54aced47b536aee356a069c3b388317d882 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 1 Oct 2021 01:11:06 -0400 Subject: [PATCH] Resolve manual_str_repeat clippy lint --- tests/test.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test.rs b/tests/test.rs index 2a792d9..c8df23d 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -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::(&[(&brackets, "recursion limit exceeded at line 1 column 128")]); }