소스 검색

convert u64 -> Duration

Benjamin Brittain 2 년 전
부모
커밋
6e2d075149
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/iface/interface.rs

+ 2 - 2
src/iface/interface.rs

@@ -399,8 +399,8 @@ let iface = builder.finalize(&mut device);
     }
 
     #[cfg(feature = "proto-sixlowpan-fragmentation")]
-    pub fn sixlowpan_fragments_cache_timeout(mut self, sec: u64) -> Self {
-        self.sixlowpan_fragments_cache_timeout = Duration::from_secs(sec);
+    pub fn sixlowpan_fragments_cache_timeout(mut self, timeout: Duration) -> Self {
+        self.sixlowpan_fragments_cache_timeout = timeout;
         self
     }