From 6d9e98aa03650e7770bd4bb67391e765d36a77fd Mon Sep 17 00:00:00 2001 From: KodrAus Date: Fri, 16 Feb 2024 15:09:18 +1000 Subject: [PATCH] run fmt --- src/kv/mod.rs | 10 +++++----- src/kv/value.rs | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/kv/mod.rs b/src/kv/mod.rs index a0ef2b9c3..f7f91f4b9 100644 --- a/src/kv/mod.rs +++ b/src/kv/mod.rs @@ -15,7 +15,7 @@ //! # Structured logging in `log` //! //! Structured logging enhances traditional text-based log records with user-defined -//! attributes. Structured logs can be analyzed using a variety of data processing +//! attributes. Structured logs can be analyzed using a variety of data processing //! techniques, without needing to find and parse attributes from unstructured text first. //! //! In `log`, user-defined attributes are part of a [`Source`] on the log record. @@ -32,18 +32,18 @@ //! # use log::info; //! info!(a = 1; "Something of interest"); //! ``` -//! +//! //! Values are capturing using the [`ToValue`] trait by default. To capture a value //! using a different trait implementation, use a modifier after its key. Here's how //! the same example can capture `a` using its `Debug` implementation instead: -//! +//! //! ``` //! # use log::info; //! info!(a:? = 1; "Something of interest"); //! ``` -//! +//! //! The following capturing modifiers are supported: -//! +//! //! - `:?` will capture the value using `Debug`. //! - `:debug` will capture the value using `Debug`. //! - `:%` will capture the value using `Display`. diff --git a/src/kv/value.rs b/src/kv/value.rs index a4dd8f618..646a22d9d 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -607,7 +607,10 @@ pub(in crate::kv) mod inner { inner.to_test_token() } - pub fn visit<'v>(inner: &Inner<'v>, visitor: impl VisitValue<'v>) -> Result<(), crate::kv::Error> { + pub fn visit<'v>( + inner: &Inner<'v>, + visitor: impl VisitValue<'v>, + ) -> Result<(), crate::kv::Error> { struct InnerVisitValue(V); impl<'v, V> value_bag::visit::Visit<'v> for InnerVisitValue