Quellcode durchsuchen

Remove lifetimes as they aren't needed

Daniel Lockyer vor 9 Jahren
Ursprung
Commit
cc4a65ac4b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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,