Fix formating/typos flaged in code review

This commit is contained in:
Daniel Sockwell 2018-07-29 17:03:14 -04:00
parent 554d50720c
commit 97f5065259
2 changed files with 2 additions and 4 deletions

View file

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