Skip to content

Commit 11c8273

Browse files
subscriber: don't gate with_ansi() on the "ansi" feature (#3020)
The commit 1cb523b removed this cfg gate on master. However, when the change was backported in 1cb523b 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."
1 parent 8a25a16 commit 11c8273

File tree

1 file changed

+0
-2
lines changed
  • tracing-subscriber/src/fmt

1 file changed

+0
-2
lines changed

tracing-subscriber/src/fmt/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,6 @@ where
627627
/// ANSI escape codes can ensure that they are not used, regardless of
628628
/// whether or not other crates in the dependency graph enable the "ansi"
629629
/// feature flag.
630-
#[cfg(feature = "ansi")]
631-
#[cfg_attr(docsrs, doc(cfg(feature = "ansi")))]
632630
pub fn with_ansi(self, ansi: bool) -> SubscriberBuilder<N, format::Format<L, T>, F, W> {
633631
SubscriberBuilder {
634632
inner: self.inner.with_ansi(ansi),

0 commit comments

Comments
 (0)