aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_cargo_watch/src/lib.rs4
-rw-r--r--crates/ra_project_model/src/cargo_workspace.rs2
2 files changed, 3 insertions, 3 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 {
249pub fn run_cargo( 249pub 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,
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs
index 72cb5d388..10ecfa951 100644
--- a/crates/ra_project_model/src/cargo_workspace.rs
+++ b/crates/ra_project_model/src/cargo_workspace.rs
@@ -297,7 +297,7 @@ pub fn load_out_dirs(
297 } 297 }
298 298
299 let mut res = FxHashMap::default(); 299 let mut res = FxHashMap::default();
300 let mut child = run_cargo(&args, cargo_toml.parent(), |message| { 300 let mut child = run_cargo(&args, cargo_toml.parent(), &mut |message| {
301 match message { 301 match message {
302 Message::BuildScriptExecuted(message) => { 302 Message::BuildScriptExecuted(message) => {
303 let package_id = message.package_id; 303 let package_id = message.package_id;