Skip to content

Commit

Permalink
Update cargo dev serve command to look over the correct files
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 22, 2024
1 parent b522e7a commit 9661ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clippy_dev/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub fn run(port: u16, lint: Option<String>) -> ! {
});

loop {
if mtime("util/gh-pages/index.html") < mtime("clippy_lints/src") {
let index_time = mtime("util/gh-pages/index.html");

if index_time < mtime("clippy_lints/src") || index_time < mtime("util/gh-pages/index_template.html") {
Command::new(env::var("CARGO").unwrap_or("cargo".into()))
.arg("collect-metadata")
.spawn()
Expand Down

0 comments on commit 9661ba0

Please sign in to comment.