From 14e7af51bac657d617ae9481ff0daf888eb80050 Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Thu, 27 Jun 2024 12:37:17 -0700 Subject: [PATCH] subscriber: don't gate `with_ansi()` on the "ansi" feature The commit 1cb523b87d3d removed this cfg gate on master. However, when the change was backported in 1cb523b87d3d the docs were updated but the cfg change was omitted. This made the docs misleading, since they say "This method itself is still available without the feature flag." --- tracing-subscriber/src/fmt/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tracing-subscriber/src/fmt/mod.rs b/tracing-subscriber/src/fmt/mod.rs index 3762164132..6a80c0e346 100644 --- a/tracing-subscriber/src/fmt/mod.rs +++ b/tracing-subscriber/src/fmt/mod.rs @@ -627,8 +627,6 @@ where /// ANSI escape codes can ensure that they are not used, regardless of /// whether or not other crates in the dependency graph enable the "ansi" /// feature flag. - #[cfg(feature = "ansi")] - #[cfg_attr(docsrs, doc(cfg(feature = "ansi")))] pub fn with_ansi(self, ansi: bool) -> SubscriberBuilder, F, W> { SubscriberBuilder { inner: self.inner.with_ansi(ansi),