Skip to content

Commit

Permalink
Move to buffers throughout print_item
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Sep 7, 2019
1 parent c1c1e86 commit 02c5c5c
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 428 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/format.rs
Expand Up @@ -872,9 +872,9 @@ impl fmt::Display for clean::Impl {

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

impl fmt::Display for clean::Arguments {
Expand Down

0 comments on commit 02c5c5c

Please sign in to comment.