Lifetime-eliding action!

This commit is contained in:
Ben S 2015-05-12 15:37:59 +01:00
parent c938c699ec
commit 07ff10e550

View File

@ -121,14 +121,14 @@ impl Options {
}, path_strs))
}
pub fn transform_files<'a>(&self, files: &mut Vec<File<'a>>) {
pub fn transform_files(&self, files: &mut Vec<File>) {
self.filter.transform_files(files)
}
}
impl FileFilter {
/// Transform the files (sorting, reversing, filtering) before listing them.
pub fn transform_files<'a>(&self, files: &mut Vec<File<'a>>) {
pub fn transform_files(&self, files: &mut Vec<File>) {
if !self.show_invisibles {
files.retain(|f| !f.is_dotfile());