Remove unnecessary dyn Display in favor of str
This commit is contained in:
parent
c5320454ed
commit
d940038636
5 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue