Skip to content

Commit

Permalink
fix up some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 16, 2024
1 parent 6d9e98a commit 44b8e99
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/__private_api.rs
Expand Up @@ -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>;
Expand Down
1 change: 1 addition & 0 deletions src/kv/mod.rs
Expand Up @@ -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(())
//! # }
//! ```
Expand Down
2 changes: 1 addition & 1 deletion src/kv/source.rs
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/kv/value.rs
Expand Up @@ -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>,
Expand Down

0 comments on commit 44b8e99

Please sign in to comment.