Skip to content

Commit

Permalink
Merge pull request #154 from nivkner/debug-impl
Browse files Browse the repository at this point in the history
add Debug to LogMetadata and LogRecord
  • Loading branch information
dtolnay committed May 20, 2017
2 parents 1e0a7fd + 3cf0356 commit 6c0840c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Expand Up @@ -190,6 +190,7 @@
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/log/")]
#![warn(missing_docs)]
#![deny(missing_debug_implementations)]
#![cfg_attr(feature = "nightly", feature(panic_handler))]

#![cfg_attr(not(feature = "use_std"), no_std)]
Expand Down Expand Up @@ -497,6 +498,7 @@ impl LogLevelFilter {
///
/// [`log`]: trait.Log.html#tymethod.log
/// [`Log`]: trait.Log.html
#[derive(Debug)]
pub struct LogRecord<'a> {
metadata: LogMetadata<'a>,
location: &'a LogLocation,
Expand Down Expand Up @@ -531,7 +533,7 @@ impl<'a> LogRecord<'a> {
}

/// Metadata about a log message.
#[derive(Eq, PartialEq, Ord, PartialOrd, Hash)]
#[derive(Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
pub struct LogMetadata<'a> {
level: LogLevel,
target: &'a str,
Expand Down

0 comments on commit 6c0840c

Please sign in to comment.