From 773c44054aed7f072ff03ee5dc64391f799dc02d Mon Sep 17 00:00:00 2001 From: David Barsky Date: Thu, 14 Nov 2019 11:50:04 -0500 Subject: [PATCH] subscriber: Expose `FmtContext` (#425) With #420, we introduced FmtContext and made it a required parameter on FormatEvent's primary methods. However, we forgot to export it, making it impossible to write custom FormatEvent implementations. This PR fixes that oversight. Thanks to @samscott89 for noticing this! Signed-off-by: David Barsky me@davidbarsky.com --- tracing-subscriber/src/fmt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing-subscriber/src/fmt/mod.rs b/tracing-subscriber/src/fmt/mod.rs index fea6633972..6042e168a6 100644 --- a/tracing-subscriber/src/fmt/mod.rs +++ b/tracing-subscriber/src/fmt/mod.rs @@ -107,7 +107,7 @@ mod fmt_layer; pub mod format; pub mod time; pub mod writer; -pub use fmt_layer::{FormattedFields, Layer, LayerBuilder}; +pub use fmt_layer::{FmtContext, FormattedFields, Layer, LayerBuilder}; use crate::layer::Layer as _; use crate::{filter::LevelFilter, layer, registry::Registry};