speed up rendering a bit

This commit is contained in:
rabite 2020-01-25 01:09:58 +01:00
parent 682a284afa
commit b399555b22
1 changed files with 2 additions and 1 deletions

View File

@ -712,9 +712,10 @@ impl ListView<Files>
fn render(&self) -> Vec<String> {
let render_fn = self.render_line_fn();
self.content
.iter_files()
.map(|file| self.render_line(file))
.map(|file| render_fn(file))
.collect()
}