Browse Source

Clippy run

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
20c1947b47
4 changed files with 2 additions and 5 deletions
  1. +0
    -2
      Cargo.toml
  2. +0
    -1
      components/site/tests/site.rs
  3. +1
    -1
      src/cmd/serve.rs
  4. +1
    -1
      src/rebuild.rs

+ 0
- 2
Cargo.toml View File

@@ -21,10 +21,8 @@ clap = "2"
chrono = "0.4" chrono = "0.4"
toml = "0.4" toml = "0.4"
term-painter = "0.2" term-painter = "0.2"

# Used in init to ensure the url given as base_url is a valid one # Used in init to ensure the url given as base_url is a valid one
url = "1.5" url = "1.5"

# Below is for the serve cmd # Below is for the serve cmd
staticfile = "0.4" staticfile = "0.4"
iron = "0.5" iron = "0.5"


+ 0
- 1
components/site/tests/site.rs View File

@@ -9,7 +9,6 @@ use std::io::prelude::*;


use tempdir::TempDir; use tempdir::TempDir;
use site::Site; use site::Site;
use front_matter::InsertAnchor;




#[test] #[test]


+ 1
- 1
src/cmd/serve.rs View File

@@ -241,7 +241,7 @@ fn detect_change_kind(pwd: &str, path: &Path) -> (ChangeKind, String) {
} else if path_str.starts_with("/sass") { } else if path_str.starts_with("/sass") {
ChangeKind::Sass ChangeKind::Sass
} else { } 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) (change_kind, path_str)


+ 1
- 1
src/rebuild.rs View File

@@ -37,7 +37,7 @@ enum SectionChangesNeeded {
Sort, Sort,
/// Editing `title`, `description`, `extra`, `template` or setting `render` to true /// Editing `title`, `description`, `extra`, `template` or setting `render` to true
Render, Render,
/// Editing `paginate_by`, `paginate_path` or `insert_anchor`
/// Editing `paginate_by`, `paginate_path` or `insert_anchor_links`
RenderWithPages, RenderWithPages,
/// Setting `render` to false /// Setting `render` to false
Delete, Delete,


Loading…
Cancel
Save