about summary refs log tree commit diff
path: root/src/librustdoc/html/render/context.rs
diff options
context:
space:
mode:
authorYotam Ofek <yotam.ofek@gmail.com>2025-05-20 13:17:13 +0000
committerYotam Ofek <yotam.ofek@gmail.com>2025-05-20 13:18:23 +0000
commit29d97cdabe21aa4a243b368555a47a33ad0cee8b (patch)
tree41560e96125d4e2bc7d9bc14ff8fbb134699799d /src/librustdoc/html/render/context.rs
parent28174fc1a0525888615c8bce8f4ecec13c85ecc6 (diff)
downloadrust-29d97cdabe21aa4a243b368555a47a33ad0cee8b.tar.gz
rust-29d97cdabe21aa4a243b368555a47a33ad0cee8b.zip
Make some fns return `fmt::Result` to get rid of a few `unwrap`s
Diffstat (limited to 'src/librustdoc/html/render/context.rs')
-rw-r--r--src/librustdoc/html/render/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index f22935df96c..ba95c1bf9e3 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -251,7 +251,7 @@ impl<'tcx> Context<'tcx> {
                 &self.shared.layout,
                 &page,
                 BufDisplay(|buf: &mut String| {
-                    print_sidebar(self, it, buf);
+                    print_sidebar(self, it, buf).unwrap();
                 }),
                 content,
                 &self.shared.style_files,