From 939b699518983656108d274d80e1c852dcc9f8ae Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 11 May 2017 15:45:19 +0900 Subject: [PATCH] Clippy --- src/site.rs | 2 +- tests/page.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site.rs b/src/site.rs index 47cecfd0..18cf8512 100644 --- a/src/site.rs +++ b/src/site.rs @@ -558,7 +558,7 @@ impl Site { let pages = self.pages.values() .filter(|p| p.meta.date.is_some()) .take(15) // limit to the last 15 elements - .map(|p| p.clone()) + .cloned() .collect::>(); // Don't generate a RSS feed if none of the pages has a date diff --git a/tests/page.rs b/tests/page.rs index 5833ce0e..83abfa9d 100644 --- a/tests/page.rs +++ b/tests/page.rs @@ -266,7 +266,7 @@ fn test_page_with_assets_gets_right_parent_path() { File::create(nested_path.join("fail.png")).unwrap(); let res = Page::parse( - &nested_path.join("index.md").as_path(), + nested_path.join("index.md").as_path(), "+++\nurl=\"hey\"+++\n", &Config::default() );