aboutsummaryrefslogtreecommitdiff
path: root/src/display/display_sink.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 17:07:22 -0700
committeriximeow <me@iximeow.net>2024-06-23 17:07:22 -0700
commit1fb5a7903bb44d44e298959d2637d858b2ea8e38 (patch)
tree15ae7bb8f58eba0966b28448f563276c3df70455 /src/display/display_sink.rs
parenta8ec2d655ca59d7118ca1ea47dada705183b5442 (diff)
document new AnsiDisplaySink, add more -arch tests for sinks
Diffstat (limited to 'src/display/display_sink.rs')
-rw-r--r--src/display/display_sink.rs4
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`