mirror of https://github.com/zkat/miette.git
clippy: tests: Remove call to `format!`.
This commit is contained in:
parent
4d576d9e53
commit
c203336d02
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue