Skip to content

Commit 02c5c5c

Browse files
Move to buffers throughout print_item
1 parent c1c1e86 commit 02c5c5c

File tree

2 files changed

+375
-428
lines changed

2 files changed

+375
-428
lines changed

src/librustdoc/html/format.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,9 @@ impl fmt::Display for clean::Impl {
872872

873873
// The difference from above is that trait is not hyperlinked.
874874
pub fn fmt_impl_for_trait_page(i: &clean::Impl,
875-
f: &mut fmt::Formatter<'_>,
876-
use_absolute: bool) -> fmt::Result {
877-
fmt_impl(i, f, false, use_absolute)
875+
f: &mut Buffer,
876+
use_absolute: bool) {
877+
f.with_formatter(|f| fmt_impl(i, f, false, use_absolute))
878878
}
879879

880880
impl fmt::Display for clean::Arguments {

0 commit comments

Comments
 (0)