瀏覽代碼

Remove lifetimes as they aren't needed

Daniel Lockyer 9 年之前
父節點
當前提交
cc4a65ac4b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/fs/dir.rs

+ 1 - 1
src/fs/dir.rs

@@ -45,7 +45,7 @@ impl Dir {
 
     /// Produce an iterator of IO results of trying to read all the files in
     /// this directory.
-    pub fn files<'dir>(&'dir self) -> Files<'dir> {
+    pub fn files(&self) -> Files {
         Files {
             inner: self.contents.iter(),
             dir: self,