Skip to content

Commit e87e205

Browse files
authored
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().
2 parents 220251e + da4c050 commit e87e205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)