X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Flogger.rs;h=e727723c16dedbc6bb4713b4bd137238884ce0b5;hb=91dc91f0532b45dc0874a4003cc945aff600d991;hp=82b8e3ea57d8d7351cc029913ee4995209e89085;hpb=576463456833bb9bee1e93c64c8e6922fd28b86b;p=rust-lightning diff --git a/src/util/logger.rs b/src/util/logger.rs index 82b8e3ea..e727723c 100644 --- a/src/util/logger.rs +++ b/src/util/logger.rs @@ -21,7 +21,7 @@ use std::sync::Arc; static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"]; /// An enum representing the available verbosity levels of the logger. -#[derive(Copy, Clone, Eq, Debug, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)] pub enum Level { ///Designates logger being silent Off, @@ -37,13 +37,6 @@ pub enum Level { Trace, } -impl PartialEq for Level { - #[inline] - fn eq(&self, other: &Level) -> bool { - *self as usize == *other as usize - } -} - impl PartialOrd for Level { #[inline] fn partial_cmp(&self, other: &Level) -> Option {