Переглянути джерело

Merge pull request #36 from creekorful/fixes/35

s/chrono/colored
Sam Clements 3 роки тому
батько
коміт
c1337657ec
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -221,7 +221,7 @@ impl SimpleLogger {
     ///
     ///
     /// This method is only available if the `colored` feature is enabled.
     /// This method is only available if the `colored` feature is enabled.
     #[must_use = "You must call init() to begin logging"]
     #[must_use = "You must call init() to begin logging"]
-    #[cfg(feature = "chrono")]
+    #[cfg(feature = "colored")]
     pub fn with_colors(mut self, colors: bool) -> SimpleLogger {
     pub fn with_colors(mut self, colors: bool) -> SimpleLogger {
         self.colors = colors;
         self.colors = colors;
         self
         self