aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_cargo_watch/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs
index e7b700c10..934379dcf 100644
--- a/crates/ra_cargo_watch/src/lib.rs
+++ b/crates/ra_cargo_watch/src/lib.rs
@@ -359,6 +359,14 @@ impl WatchThread {
359 } 359 }
360 }; 360 };
361 361
362 // Skip certain kinds of messages to only spend time on what's useful
363 match &message {
364 Message::CompilerArtifact(artifact) if artifact.fresh => continue,
365 Message::BuildScriptExecuted(_) => continue,
366 Message::Unknown => continue,
367 _ => {}
368 }
369
362 match message_send.send(CheckEvent::Msg(message)) { 370 match message_send.send(CheckEvent::Msg(message)) {
363 Ok(()) => {} 371 Ok(()) => {}
364 Err(_err) => { 372 Err(_err) => {