Skip to content

Commit 2845ce5

Browse files
Destructure in for loop
1 parent c50d9f3 commit 2845ce5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/proc_macro_api/src/process.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ fn client_loop(task_rx: Receiver<Task>, mut process: Process) {
109109
Some(it) => it,
110110
};
111111

112-
for task in task_rx {
113-
let Task { req, result_tx } = task;
114-
112+
for Task { req, result_tx } in task_rx {
115113
match send_request(&mut stdin, &mut stdout, req) {
116114
Ok(res) => result_tx.send(res).unwrap(),
117115
Err(_err) => {

0 commit comments

Comments
 (0)