Skip to content

Commit

Permalink
subscriber: don't gate with_ansi() on the "ansi" feature (#3020)
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
eric-seppanen authored Nov 25, 2024
1 parent 8a25a16 commit 11c8273
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tracing-subscriber/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<N, format::Format<L, T>, F, W> {
SubscriberBuilder {
inner: self.inner.with_ansi(ansi),
Expand Down

0 comments on commit 11c8273

Please sign in to comment.