X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Flogger.rs;h=df2b7f704051958a1e8ddc63523108061c8cfb08;hb=4992955ad395b3276f5fe509dd2331218ad4534a;hp=acd6d323e8f319e9b3c84550ab099d2258f486cb;hpb=343aacc50c73e18ddb1ec52570c5050bdccd09ca;p=rust-lightning diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs index acd6d323e..df2b7f704 100644 --- a/lightning/src/util/logger.rs +++ b/lightning/src/util/logger.rs @@ -14,8 +14,8 @@ //! The second one, client-side by implementing check against Record Level field. //! Each module may have its own Logger or share one. -use std::cmp; -use std::fmt; +use core::cmp; +use core::fmt; static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"]; @@ -117,7 +117,7 @@ impl<'a> Record<'a> { } /// A trait encapsulating the operations required of a logger -pub trait Logger: Sync + Send { +pub trait Logger { /// Logs the `Record` fn log(&self, record: &Record); }