From 1fb5a7903bb44d44e298959d2637d858b2ea8e38 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 17:07:22 -0700 Subject: document new AnsiDisplaySink, add more -arch tests for sinks --- src/display/display_sink.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/display') 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` -- cgit v1.1