y 2 жил өмнө
parent
commit
c7814711e0
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/util/time.rs

+ 2 - 2
src/util/time.rs

@@ -297,7 +297,7 @@ pub fn timestamp_to_date(timestamp: u64, format: DateFormat) -> String {
 
 #[cfg(test)]
 mod tests {
-    use super::{Timestamp, TimeKeeper};
+    use super::{TimeKeeper, Timestamp};
 
     #[test]
     fn zero_values_are_safe() {
@@ -305,7 +305,7 @@ mod tests {
         // Certain functions above use division so a panic can occur
         // if division-by-zero is performed.
         let ts = Timestamp::current_time();
-        let tk = TimeKeeper::new(ts,0,0,0);
+        let tk = TimeKeeper::new(ts, 0, 0, 0);
         // Try all TimeKeeper functions that use division.
         tk.current_epoch();
         tk.slot_epoch(0);