that doesn't need to be mutable

This commit is contained in:
edef 2015-03-03 01:53:35 -05:00
parent b0dcc65304
commit deb452c651

View File

@ -9,7 +9,7 @@ fn main() {
let mut objects = Vec::new();
let files = fs::readdir(&Path::new("src")).unwrap();
let mut files = files.iter().filter(|p| p.is_file());
let files = files.iter().filter(|p| p.is_file());
for file in files {
if let Some(filename) = file.filename_str() {