fix up some warnings

This commit is contained in:
KodrAus 2024-02-16 15:14:35 +10:00
parent 6d9e98aa03
commit 44b8e99059
4 changed files with 2 additions and 8 deletions

View File

@ -87,8 +87,6 @@ pub fn enabled(level: Level, target: &str) -> bool {
#[cfg(feature = "kv_unstable")]
mod kv_support {
use super::*;
use crate::kv;
pub type Value<'a> = kv::Value<'a>;

View File

@ -66,6 +66,7 @@
//! // info!(a = 1; "Something of interest");
//!
//! let a: Value = record.key_values().get(Key::from("a")).unwrap();
//! assert_eq!(1, a.to_i64().unwrap());
//! # Ok(())
//! # }
//! ```

View File

@ -21,7 +21,7 @@ use std::fmt;
///
/// ```
/// # fn main() -> Result<(), log::kv::Error> {
/// use log::kv::{self, Source, Key, Value, source::VisitSource};
/// use log::kv::{self, Source, Key, Value, VisitSource};
///
/// // A `VisitSource` that prints all key-values
/// // VisitSources are fed the key-value pairs of each key-values

View File

@ -602,11 +602,6 @@ pub(in crate::kv) mod inner {
#[cfg(test)]
pub use value_bag::test::TestToken as Token;
#[cfg(test)]
pub fn to_test_token<'v>(inner: &Inner<'v>) -> Token {
inner.to_test_token()
}
pub fn visit<'v>(
inner: &Inner<'v>,
visitor: impl VisitValue<'v>,