Browse Source

Fix formating/typos flaged in code review

index-subcmd
Daniel Sockwell 6 years ago
parent
commit
97f5065259
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      components/content/src/sorting.rs
  2. +1
    -1
      components/rebuild/tests/rebuild.rs

+ 1
- 3
components/content/src/sorting.rs View File

@@ -92,8 +92,7 @@ pub fn populate_previous_and_next_pages(input: &[Page], sort_by: SortBy) -> Vec<
next_page.later = None;
new_page.later = Some(Box::new(next_page));
},
SortBy::None => {
}
SortBy::None => {}
}
break;
}
@@ -191,7 +190,6 @@ mod tests {
create_page_with_weight(1),
];
let (pages, _) = sort_pages(input, SortBy::None);
// Should be sorted by date
assert_eq!(pages[0].clone().meta.weight.unwrap(), 2);
assert_eq!(pages[1].clone().meta.weight.unwrap(), 3);
assert_eq!(pages[2].clone().meta.weight.unwrap(), 1);


+ 1
- 1
components/rebuild/tests/rebuild.rs View File

@@ -2,7 +2,7 @@ extern crate rebuild;
extern crate site;
extern crate tempfile;
extern crate fs_extra;
use std::env;
use std::fs::{remove_dir_all, File};
use std::io::prelude::*;


Loading…
Cancel
Save