diff rust/hg-core/src/operations/dirstate_status.rs @ 46058:fd47483f1645

rust: use crossbeam-channel crate directly ? instead of its reexport in the crossbeam crate. This removes two crates from the dependency graph. Differential Revision: https://phab.mercurial-scm.org/D9521
author Simon Sapin <simon-commits@exyr.org>
date Mon, 30 Nov 2020 17:13:07 +0100
parents 5c736ba5dc27
children 441024b279a6
line wrap: on
line diff
--- a/rust/hg-core/src/operations/dirstate_status.rs	Fri Dec 04 12:42:23 2020 +0100
+++ b/rust/hg-core/src/operations/dirstate_status.rs	Mon Nov 30 17:13:07 2020 +0100
@@ -18,7 +18,7 @@
 impl<'a, M: Matcher + Sync> Status<'a, M> {
     pub(crate) fn run(&self) -> Result<LookupAndStatus<'a>, StatusError> {
         let (traversed_sender, traversed_receiver) =
-            crossbeam::channel::unbounded();
+            crossbeam_channel::unbounded();
 
         // Step 1: check the files explicitly mentioned by the user
         let (work, mut results) = self.walk_explicit(traversed_sender.clone());
@@ -77,7 +77,7 @@
 impl<'a, M: Matcher + Sync> Status<'a, M> {
     pub(crate) fn run(&self) -> Result<LookupAndStatus<'a>, StatusError> {
         let (traversed_sender, traversed_receiver) =
-            crossbeam::channel::unbounded();
+            crossbeam_channel::unbounded();
 
         // Step 1: check the files explicitly mentioned by the user
         let (work, mut results) = self.walk_explicit(traversed_sender.clone());