about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustdoc/html/format.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 47d626a1d88..f4df9ef4a8c 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -65,9 +65,20 @@ crate struct Buffer {
 }
 
 impl core::fmt::Write for Buffer {
+    #[inline]
     fn write_str(&mut self, s: &str) -> fmt::Result {
         self.buffer.write_str(s)
     }
+
+    #[inline]
+    fn write_char(&mut self, c: char) -> fmt::Result {
+        self.buffer.write_char(c)
+    }
+
+    #[inline]
+    fn write_fmt(self: &mut Self, args: fmt::Arguments<'_>) -> fmt::Result {
+        self.buffer.write_fmt(args)
+    }
 }
 
 impl Buffer {