Skip to content

Commit 9661ba0

Browse files
Update cargo dev serve command to look over the correct files
1 parent b522e7a commit 9661ba0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_dev/src/serve.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ pub fn run(port: u16, lint: Option<String>) -> ! {
1919
});
2020

2121
loop {
22-
if mtime("util/gh-pages/index.html") < mtime("clippy_lints/src") {
22+
let index_time = mtime("util/gh-pages/index.html");
23+
24+
if index_time < mtime("clippy_lints/src") || index_time < mtime("util/gh-pages/index_template.html") {
2325
Command::new(env::var("CARGO").unwrap_or("cargo".into()))
2426
.arg("collect-metadata")
2527
.spawn()

0 commit comments

Comments
 (0)