From 20c1947b478e877d55fc3134028e42b2229edcf1 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 2 Oct 2017 20:16:56 +0900 Subject: [PATCH] Clippy run --- Cargo.toml | 2 -- components/site/tests/site.rs | 1 - src/cmd/serve.rs | 2 +- src/rebuild.rs | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fc04c0e5..acf57e80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,10 +21,8 @@ clap = "2" chrono = "0.4" toml = "0.4" term-painter = "0.2" - # Used in init to ensure the url given as base_url is a valid one url = "1.5" - # Below is for the serve cmd staticfile = "0.4" iron = "0.5" diff --git a/components/site/tests/site.rs b/components/site/tests/site.rs index a545a63e..32656d6f 100644 --- a/components/site/tests/site.rs +++ b/components/site/tests/site.rs @@ -9,7 +9,6 @@ use std::io::prelude::*; use tempdir::TempDir; use site::Site; -use front_matter::InsertAnchor; #[test] diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index ec5100da..10177536 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -241,7 +241,7 @@ fn detect_change_kind(pwd: &str, path: &Path) -> (ChangeKind, String) { } else if path_str.starts_with("/sass") { ChangeKind::Sass } else { - unreachable!("Got a change in an unexpected path: {}", path_str); + unreachable!("Got a change in an unexpected path: {}", path_str) }; (change_kind, path_str) diff --git a/src/rebuild.rs b/src/rebuild.rs index 5c1b16e5..112f40e7 100644 --- a/src/rebuild.rs +++ b/src/rebuild.rs @@ -37,7 +37,7 @@ enum SectionChangesNeeded { Sort, /// Editing `title`, `description`, `extra`, `template` or setting `render` to true Render, - /// Editing `paginate_by`, `paginate_path` or `insert_anchor` + /// Editing `paginate_by`, `paginate_path` or `insert_anchor_links` RenderWithPages, /// Setting `render` to false Delete,