clippy: tests: Remove call to `format!`.

This commit is contained in:
Bruce Mitchener 2023-09-18 21:20:36 +07:00
parent 4d576d9e53
commit c203336d02
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ fn test_diagnostic_source() {
fn test_diagnostic_source_pass_extra_info() { fn test_diagnostic_source_pass_extra_info() {
let diag = TestBoxedError(Box::new(SourceError { let diag = TestBoxedError(Box::new(SourceError {
code: String::from("Hello\nWorld!"), code: String::from("Hello\nWorld!"),
help: format!("Have you tried turning it on and off again?"), help: String::from("Have you tried turning it on and off again?"),
label: (1, 4), label: (1, 4),
})); }));
let mut out = String::new(); let mut out = String::new();