do not to_string, use display

This commit is contained in:
klensy
2024-11-23 23:16:26 +03:00
parent 2cf7908998
commit da4c050bb0
+1 -1
View File
@@ -1296,7 +1296,7 @@ pub(crate) fn print<'a, 'tcx: 'a>(
self.print_type(inner_type, f, use_absolute, cx)?;
write!(f, ">")?;
} else {
write!(f, "{}&lt;", anchor(ty.def_id(), last, cx).to_string())?;
write!(f, "{}&lt;", anchor(ty.def_id(), last, cx))?;
self.print_type(inner_type, f, use_absolute, cx)?;
write!(f, "&gt;")?;
}