Просмотр исходного кода

Remove lifetimes as they aren't needed

Daniel Lockyer 9 лет назад
Родитель
Сommit
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
     /// Produce an iterator of IO results of trying to read all the files in
     /// this directory.
     /// this directory.
-    pub fn files<'dir>(&'dir self) -> Files<'dir> {
+    pub fn files(&self) -> Files {
         Files {
         Files {
             inner: self.contents.iter(),
             inner: self.contents.iter(),
             dir: self,
             dir: self,