Rollup merge of #133398 - klensy:rd-to-string, r=aDotInTheVoid
rustdoc: do not call to_string, it's already impl Display `anchor` returns impl Display, so no need to call to_string().
This commit is contained in:
commit
e87e205010
1 changed files with 1 additions and 1 deletions
|
@ -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, ">")?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue