aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-04 12:57:33 +0000
committerJonas Schievink <[email protected]>2020-12-04 12:57:33 +0000
commit2845ce5bc6d8bd2cadaf0acb3afc3d4e10c76fab (patch)
treebdeee0371ca151068ab9113ae6c2e305376aebbe /crates
parentc50d9f36837bcbd9ac29f30e4983e0c0dd9b1fc9 (diff)
Destructure in for loop
Diffstat (limited to 'crates')
-rw-r--r--crates/proc_macro_api/src/process.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/proc_macro_api/src/process.rs b/crates/proc_macro_api/src/process.rs
index fca506905..0aeb38a8a 100644
--- a/crates/proc_macro_api/src/process.rs
+++ b/crates/proc_macro_api/src/process.rs
@@ -109,9 +109,7 @@ fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
109 Some(it) => it, 109 Some(it) => it,
110 }; 110 };
111 111
112 for task in task_rx { 112 for Task { req, result_tx } in task_rx {
113 let Task { req, result_tx } = task;
114
115 match send_request(&mut stdin, &mut stdout, req) { 113 match send_request(&mut stdin, &mut stdout, req) {
116 Ok(res) => result_tx.send(res).unwrap(), 114 Ok(res) => result_tx.send(res).unwrap(),
117 Err(_err) => { 115 Err(_err) => {