浏览代码

Make advance_days only available with test feature

onyinyang 3 月之前
父节点
当前提交
abd092e296
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -985,9 +985,9 @@ impl BridgeAuth {
         &self.bridge_table.encbuckets
     }
 
-    //#[cfg(test)]
     // For testing only: manually advance the day by the given number
     // of days
+    #[cfg(feature = "test")]
     pub fn advance_days(&mut self, days: u16) {
         self.time_offset += time::Duration::days(days.into());
     }