Skip to content

Commit

Permalink
run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 16, 2024
1 parent f6b89c0 commit 6d9e98a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/kv/mod.rs
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down
5 changes: 4 additions & 1 deletion src/kv/value.rs
Expand Up @@ -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>(V);

impl<'v, V> value_bag::visit::Visit<'v> for InnerVisitValue<V>
Expand Down

0 comments on commit 6d9e98a

Please sign in to comment.