mirror of
https://github.com/getzola/zola
synced 2024-11-13 23:57:06 +00:00
Fix formating/typos flaged in code review
This commit is contained in:
parent
554d50720c
commit
97f5065259
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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…
Reference in a new issue