From 61f3a438d3a729a6be941bca1ff4c6a97a33f221 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Mon, 15 Oct 2018 17:44:23 -0400 Subject: Cargo Format Run `cargo fmt` and ignore generated files --- crates/ra_analysis/src/job.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'crates/ra_analysis/src/job.rs') diff --git a/crates/ra_analysis/src/job.rs b/crates/ra_analysis/src/job.rs index ea1652a26..2871f9839 100644 --- a/crates/ra_analysis/src/job.rs +++ b/crates/ra_analysis/src/job.rs @@ -14,15 +14,20 @@ impl JobHandle { pub fn new() -> (JobHandle, JobToken) { let (sender_alive, receiver_alive) = bounded(0); let (sender_canceled, receiver_canceled) = bounded(0); - let token = JobToken { _job_alive: sender_alive, job_canceled: receiver_canceled }; - let handle = JobHandle { job_alive: receiver_alive, _job_canceled: sender_canceled }; + let token = JobToken { + _job_alive: sender_alive, + job_canceled: receiver_canceled, + }; + let handle = JobHandle { + job_alive: receiver_alive, + _job_canceled: sender_canceled, + }; (handle, token) } pub fn has_completed(&self) -> bool { is_closed(&self.job_alive) } - pub fn cancel(self) { - } + pub fn cancel(self) {} } impl JobToken { @@ -31,7 +36,6 @@ impl JobToken { } } - // We don't actually send messages through the channels, // and instead just check if the channel is closed, // so we use uninhabited enum as a message type -- cgit v1.2.3