mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 22:18:40 +00:00
Update cargo dev serve
command to look over the correct files
This commit is contained in:
parent
b522e7a944
commit
9661ba0740
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue