aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/job.rs
diff options
context:
space:
mode:
authorJoe Neeman2021-06-28 13:00:44 +0000
committerBlaž Hrastnik2021-06-30 08:08:50 +0000
commitffa2f2590bc679b3cf8529e9578860ad05b78148 (patch)
treef7381603e7d998d3138351e07212834802bf90dc /helix-term/src/job.rs
parentd64d75e72434842f2cceff2c77a03efab5e7a0bc (diff)
Satisfy clippy.
Diffstat (limited to 'helix-term/src/job.rs')
-rw-r--r--helix-term/src/job.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/job.rs b/helix-term/src/job.rs
index fcecfbce..4b59c81c 100644
--- a/helix-term/src/job.rs
+++ b/helix-term/src/job.rs
@@ -33,7 +33,7 @@ impl Job {
f: F,
) -> Job {
Job {
- future: f.map(|r| r.map(|x| Some(x))).boxed(),
+ future: f.map(|r| r.map(Some)).boxed(),
wait: false,
}
}
@@ -77,9 +77,9 @@ impl Jobs {
}
}
- pub fn next<'a>(
- &'a mut self,
- ) -> impl Future<Output = Option<anyhow::Result<Option<Callback>>>> + 'a {
+ pub fn next_job(
+ &mut self,
+ ) -> impl Future<Output = Option<anyhow::Result<Option<Callback>>>> + '_ {
future::select(self.futures.next(), self.wait_futures.next())
.map(|either| either.factor_first().0)
}