Remove unnecessary dyn Display in favor of str

This commit is contained in:
Michael Goulet 2025-04-08 06:09:04 +00:00
parent c5320454ed
commit d940038636
5 changed files with 9 additions and 9 deletions

View file

@ -513,7 +513,7 @@ impl Subdiagnostic for BuiltinClashingExternSub<'_> {
expected_str.push(self.expected.fn_sig(self.tcx).to_string(), false);
let mut found_str = DiagStyledString::new();
found_str.push(self.found.fn_sig(self.tcx).to_string(), true);
diag.note_expected_found(&"", expected_str, &"", found_str);
diag.note_expected_found("", expected_str, "", found_str);
}
}