ctaoist 2 gadi atpakaļ
vecāks
revīzija
0939c3da80
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -346,6 +346,7 @@ impl SimpleLogger {
         set_up_color_terminal();
 
         // Set default timestamp format
+        #[cfg(feature = "timestamps")]
         if self.timeformat.len() <= 0 {
             self.timeformat = match self.timestamps {
                 Timestamps::Local => TIMESTAMP_FORMAT_OFFSET,