Skip to content

Commit

Permalink
subscriber: move PrettyFields, remove _private (review)
Browse files Browse the repository at this point in the history
  • Loading branch information
katelyn martin committed Mar 11, 2021
1 parent 0926f66 commit b44e3ec
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions tracing-subscriber/src/fmt/format/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ pub struct PrettyVisitor<'a> {
result: fmt::Result,
}

/// An excessively pretty, human-readable [`MakeVisitor`] implementation.
///
/// [`MakeVisitor`]: crate::field::MakeVisitor
#[derive(Debug)]
pub struct PrettyFields {
ansi: bool,
}

// === impl Pretty ===

impl Default for Pretty {
Expand Down Expand Up @@ -236,17 +244,6 @@ impl<'writer> FormatFields<'writer> for Pretty {

// === impl PrettyFields ===

/// An excessively pretty, human-readable [`MakeVisitor`] implementation.
///
/// [`MakeVisitor`]: crate::field::MakeVisitor
#[derive(Debug)]
pub struct PrettyFields {
ansi: bool,
// reserve the ability to add fields to this without causing a breaking
// change in the future.
_private: (),
}

impl Default for PrettyFields {
fn default() -> Self {
Self::new()
Expand Down

0 comments on commit b44e3ec

Please sign in to comment.