Fix unnecessary async for future and/or utils.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e5bf005eaf
commit
e12b0262da
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
pub async fn and<I, F>(args: I) -> impl Future<Output = bool> + Send
|
||||
pub fn and<I, F>(args: I) -> impl Future<Output = bool> + Send
|
||||
where
|
||||
I: Iterator<Item = F> + Send,
|
||||
F: Future<Output = bool> + Send,
|
||||
|
|
@ -72,7 +72,7 @@ where
|
|||
try_join_all(args).map(|result| result.is_ok())
|
||||
}
|
||||
|
||||
pub async fn or<I, F>(args: I) -> impl Future<Output = bool> + Send
|
||||
pub fn or<I, F>(args: I) -> impl Future<Output = bool> + Send
|
||||
where
|
||||
I: Iterator<Item = F> + Send,
|
||||
F: Future<Output = bool> + Send + Unpin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue