diff options
Diffstat (limited to 'crates/ra_cargo_watch')
-rw-r--r-- | crates/ra_cargo_watch/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs index 71aa28f0a..bffe5eb00 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs | |||
@@ -249,7 +249,7 @@ enum CheckEvent { | |||
249 | pub fn run_cargo( | 249 | pub fn run_cargo( |
250 | args: &[String], | 250 | args: &[String], |
251 | current_dir: Option<&Path>, | 251 | current_dir: Option<&Path>, |
252 | mut on_message: impl FnMut(cargo_metadata::Message) -> bool, | 252 | on_message: &mut dyn FnMut(cargo_metadata::Message) -> bool, |
253 | ) -> Child { | 253 | ) -> Child { |
254 | let mut command = Command::new("cargo"); | 254 | let mut command = Command::new("cargo"); |
255 | if let Some(current_dir) = current_dir { | 255 | if let Some(current_dir) = current_dir { |
@@ -325,7 +325,7 @@ impl WatchThread { | |||
325 | // which will break out of the loop, and continue the shutdown | 325 | // which will break out of the loop, and continue the shutdown |
326 | let _ = message_send.send(CheckEvent::Begin); | 326 | let _ = message_send.send(CheckEvent::Begin); |
327 | 327 | ||
328 | let mut child = run_cargo(&args, Some(&workspace_root), |message| { | 328 | let mut child = run_cargo(&args, Some(&workspace_root), &mut |message| { |
329 | // Skip certain kinds of messages to only spend time on what's useful | 329 | // Skip certain kinds of messages to only spend time on what's useful |
330 | match &message { | 330 | match &message { |
331 | Message::CompilerArtifact(artifact) if artifact.fresh => return true, | 331 | Message::CompilerArtifact(artifact) if artifact.fresh => return true, |