diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-12 12:51:53 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 12:51:53 +0100 |
commit | 4b3d99f98f393d1c05b1041d3178cae45ebcd3ff (patch) | |
tree | ded304d310badd7d1dc040efa2c8c17572019464 /crates/ra_proc_macro/src | |
parent | f6c0b1ce59c9fa5bcbf482b1b9d16a3bae6abf1c (diff) | |
parent | fcd4b0176f1544b389c9b028c547a1dfc92f9a56 (diff) |
Merge #5699
5699: Fix clippy warnings r=matklad a=popzxc
Currently clippy spawns a bunch of warnings on the `rust-analyzer` project. Nothing critical, but easy to fix, so I guess it won't harm.
Co-authored-by: Igor Aleksanov <[email protected]>
Diffstat (limited to 'crates/ra_proc_macro/src')
-rw-r--r-- | crates/ra_proc_macro/src/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_proc_macro/src/process.rs b/crates/ra_proc_macro/src/process.rs index 5bcdacb48..37dd3f496 100644 --- a/crates/ra_proc_macro/src/process.rs +++ b/crates/ra_proc_macro/src/process.rs | |||
@@ -90,7 +90,7 @@ impl ProcMacroProcessSrv { | |||
90 | } | 90 | } |
91 | Some(it) => it, | 91 | Some(it) => it, |
92 | }; | 92 | }; |
93 | sender.send(Task { req: req.into(), result_tx }).unwrap(); | 93 | sender.send(Task { req, result_tx }).unwrap(); |
94 | let res = result_rx | 94 | let res = result_rx |
95 | .recv() | 95 | .recv() |
96 | .map_err(|_| ra_tt::ExpansionError::Unknown("Proc macro thread is closed.".into()))?; | 96 | .map_err(|_| ra_tt::ExpansionError::Unknown("Proc macro thread is closed.".into()))?; |