diff --git a/tests/test_diagnostic_source_macro.rs b/tests/test_diagnostic_source_macro.rs index 536aedf..df30b2e 100644 --- a/tests/test_diagnostic_source_macro.rs +++ b/tests/test_diagnostic_source_macro.rs @@ -79,7 +79,7 @@ fn test_diagnostic_source() { fn test_diagnostic_source_pass_extra_info() { let diag = TestBoxedError(Box::new(SourceError { 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), })); let mut out = String::new();