Browse Source

Remove redundant filtering operation (optimization)

index-subcmd
cmal 6 years ago
parent
commit
739c2011a7
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      components/site/src/lib.rs

+ 0
- 2
components/site/src/lib.rs View File

@@ -187,7 +187,6 @@ impl Site {

section_entries
.into_par_iter()
.filter(|entry| entry.as_path().file_name().unwrap() == "_index.md")
.map(|entry| {
let path = entry.as_path();
Section::from_file(path, config)
@@ -200,7 +199,6 @@ impl Site {

page_entries
.into_par_iter()
.filter(|entry| entry.as_path().file_name().unwrap() != "_index.md")
.map(|entry| {
let path = entry.as_path();
Page::from_file(path, config)


Loading…
Cancel
Save