diff options
author | Alan Du <[email protected]> | 2018-10-16 18:31:16 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2018-10-18 00:42:23 +0100 |
commit | 2ae9dfa812ccf18867373f77a106161378a6d91d (patch) | |
tree | c3ff8017bfa41dd31de37de6716eb97db132ebcf /crates/ra_analysis/src/job.rs | |
parent | 2268a2f8c6557301ecdcaeb4074331a0bd37dccd (diff) |
clippy: Fix new_ret_no_self
Diffstat (limited to 'crates/ra_analysis/src/job.rs')
-rw-r--r-- | crates/ra_analysis/src/job.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/job.rs b/crates/ra_analysis/src/job.rs index 2871f9839..57215c862 100644 --- a/crates/ra_analysis/src/job.rs +++ b/crates/ra_analysis/src/job.rs | |||
@@ -11,7 +11,7 @@ pub struct JobToken { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | impl JobHandle { | 13 | impl JobHandle { |
14 | pub fn new() -> (JobHandle, JobToken) { | 14 | pub fn new_pair() -> (JobHandle, JobToken) { |
15 | let (sender_alive, receiver_alive) = bounded(0); | 15 | let (sender_alive, receiver_alive) = bounded(0); |
16 | let (sender_canceled, receiver_canceled) = bounded(0); | 16 | let (sender_canceled, receiver_canceled) = bounded(0); |
17 | let token = JobToken { | 17 | let token = JobToken { |