diff options
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/display_sink.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display/display_sink.rs b/src/display/display_sink.rs index 18713cd..9bad1e3 100644 --- a/src/display/display_sink.rs +++ b/src/display/display_sink.rs @@ -350,6 +350,10 @@ impl<'a, T: fmt::Write> FmtSink<'a, T> { pub fn new(f: &'a mut T) -> Self { Self { out: f } } + + pub fn inner_ref(&self) -> &T { + &self.out + } } /// blanket impl that discards all span information, forwards writes to the underlying `fmt::Write` |