Resolve manual_string_new pedantic clippy lint

warning: empty String is being created manually
        --> test_suite/tests/test_annotations.rs:2280:29
         |
    2280 |     let data = Data::C { t: "".to_string() };
         |                             ^^^^^^^^^^^^^^ help: consider using: `String::new()`
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new
         = note: `-W clippy::manual-string-new` implied by `-W clippy::pedantic`
This commit is contained in:
David Tolnay 2023-07-26 13:46:22 -07:00
parent 7255e192d8
commit b0f7b00e1f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -2277,7 +2277,7 @@ fn test_internally_tagged_enum_with_skipped_conflict() {
},
}
let data = Data::C { t: "".to_string() };
let data = Data::C { t: String::new() };
assert_tokens(
&data,