Skip to content

Commit 10986b9

Browse files
authored
Unrolled build for rust-lang#133398
Rollup merge of rust-lang#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().
2 parents ab3cf26 + da4c050 commit 10986b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ impl clean::Impl {
12961296
self.print_type(inner_type, f, use_absolute, cx)?;
12971297
write!(f, ">")?;
12981298
} else {
1299-
write!(f, "{}<", anchor(ty.def_id(), last, cx).to_string())?;
1299+
write!(f, "{}<", anchor(ty.def_id(), last, cx))?;
13001300
self.print_type(inner_type, f, use_absolute, cx)?;
13011301
write!(f, ">")?;
13021302
}

0 commit comments

Comments
 (0)