From 082d1b4e8cdcbc8b8140523e8c88d01155d00d37 Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Wed, 11 Sep 2019 18:11:06 -0400 Subject: [PATCH] Suggested doc fix --- tracing-core/src/field.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracing-core/src/field.rs b/tracing-core/src/field.rs index f07fd7d743..ede426c722 100644 --- a/tracing-core/src/field.rs +++ b/tracing-core/src/field.rs @@ -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);