do not to_string, use display

This commit is contained in:
klensy 2024-11-23 23:16:26 +03:00
parent 2cf7908998
commit da4c050bb0

View File

@ -1296,7 +1296,7 @@ impl clean::Impl {
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, ">")?;
}