summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-10-19 16:01:46 +0200
committerGitHub <noreply@github.com>2021-10-19 16:01:46 +0200
commitf83c756aa0754d8507d6df1b4afc6fd516396c98 (patch)
tree968d8ac70036555f130416a5e2b96810dcc3e4ff /cli/main.rs
parentd77a4f1d43f8ff74b7d0d69e10179293fca0447c (diff)
refactor: use a single Mutex in ProcState for module graph (#12489)
This commit factors out 4 different fields from "ProcState", that are behind "Arc<Mutex<>>" into a single struct behind a single mutex.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 9dd7a354e..d36145bea 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -548,7 +548,7 @@ async fn cache_command(
Permissions::allow_all(),
)
.await?;
- if let Some(graph_error) = ps.maybe_graph_error.lock().take() {
+ if let Some(graph_error) = ps.take_graph_error() {
return Err(graph_error.into());
}
}