diff --git a/src/fs/filter.rs b/src/fs/filter.rs index d3f831b..84f607c 100644 --- a/src/fs/filter.rs +++ b/src/fs/filter.rs @@ -89,7 +89,7 @@ impl FileFilter { } /// Sort the files in the given vector based on the sort field option. - pub fn sort_files<'a, F>(&self, files: &mut Vec) + pub fn sort_files<'a, F>(&self, files: &mut [F]) where F: AsRef> { files.sort_by(|a, b| {