From 97f5065259da7a9bab079801977bee5554d31e57 Mon Sep 17 00:00:00 2001 From: Daniel Sockwell Date: Sun, 29 Jul 2018 17:03:14 -0400 Subject: [PATCH] Fix formating/typos flaged in code review --- components/content/src/sorting.rs | 4 +--- components/rebuild/tests/rebuild.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/content/src/sorting.rs b/components/content/src/sorting.rs index 8d9bcda7..592d8446 100644 --- a/components/content/src/sorting.rs +++ b/components/content/src/sorting.rs @@ -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); diff --git a/components/rebuild/tests/rebuild.rs b/components/rebuild/tests/rebuild.rs index dbc3a357..42bbae2e 100644 --- a/components/rebuild/tests/rebuild.rs +++ b/components/rebuild/tests/rebuild.rs @@ -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::*;