Skip to content

Commit

Permalink
Suggested doc dix
Browse files Browse the repository at this point in the history
  • Loading branch information
samscott89 committed Sep 11, 2019
1 parent b385da6 commit 946637d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing-core/src/field.rs
Expand Up @@ -219,6 +219,8 @@ pub trait Value: crate::sealed::Sealed {
}

/// A `Value` which serializes as a string using `fmt::Display`.
/// Uses `record_debug` in the `Value` implementation to
/// avoid an unnecessary evaluation.
#[derive(Clone)]
pub struct DisplayValue<T: fmt::Display>(T);

Expand Down

0 comments on commit 946637d

Please sign in to comment.