From 11c82730359f60b290cba0a405947b23c0a68d7b Mon Sep 17 00:00:00 2001 From: Eric Seppanen <109770420+eric-seppanen@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:43:30 -0800 Subject: [PATCH] subscriber: don't gate `with_ansi()` on the "ansi" feature (#3020) 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),