y 2 年之前
父節點
當前提交
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);