Clippy run
This commit is contained in:
parent
f2a641abea
commit
20c1947b47
|
@ -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"
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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…
Reference in a new issue