Don't do check progress update for fresh crates

This commit is contained in:
Emil Lauridsen 2020-01-28 14:33:52 +01:00
parent 912776fd95
commit fdc04ef920

View file

@ -359,6 +359,14 @@ impl WatchThread {
} }
}; };
// Skip certain kinds of messages to only spend time on what's useful
match &message {
Message::CompilerArtifact(artifact) if artifact.fresh => continue,
Message::BuildScriptExecuted(_) => continue,
Message::Unknown => continue,
_ => {}
}
match message_send.send(CheckEvent::Msg(message)) { match message_send.send(CheckEvent::Msg(message)) {
Ok(()) => {} Ok(()) => {}
Err(_err) => { Err(_err) => {