Преглед изворни кода

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,