mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
do not to_string, use display
This commit is contained in:
@@ -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, "{}<", anchor(ty.def_id(), last, cx).to_string())?;
|
||||
write!(f, "{}<", anchor(ty.def_id(), last, cx))?;
|
||||
self.print_type(inner_type, f, use_absolute, cx)?;
|
||||
write!(f, ">")?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user