From 9af851709f0455affa230788246b364bb98c449a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 1 Sep 2022 22:32:16 -0700 Subject: [PATCH] Resolve manual_string_new pedantic clippy lint in test error: empty String is being created manually --> tests/test.rs:1110:18 | 1110 | ("\"\"", "".to_string()), | ^^^^^^^^^^^^^^ help: consider using: `String::new()` | = note: `-D clippy::manual-string-new` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new --- tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index 396d55bc4..aa5b5caa0 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1107,7 +1107,7 @@ fn test_parse_string() { ]); test_parse_ok(vec![ - ("\"\"", "".to_string()), + ("\"\"", String::new()), ("\"foo\"", "foo".to_string()), (" \"foo\" ", "foo".to_string()), ("\"\\\"\"", "\"".to_string()),