mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 08:06:38 +00:00
Apply cargo fmt
This commit is contained in:
parent
615779187c
commit
2aeaa32c68
2 changed files with 8 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::{future::Future, pin::Pin, fmt::Debug};
|
||||
use std::{fmt::Debug, future::Future, pin::Pin};
|
||||
|
||||
use tracing::warn;
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::warn;
|
||||
|
||||
/// Given multiple futures with output = `Result<Option<T>, E>`,
|
||||
/// returns the the first one that returns either `Err(_)` or
|
||||
|
@ -73,7 +73,7 @@ impl<T: Send + 'static, E: Send + Debug + 'static> FuturesResolver<T, E> {
|
|||
let mut rx = self.rx;
|
||||
drop(self.tx);
|
||||
|
||||
async move {
|
||||
async move {
|
||||
while let Some(res) = rx.recv().await {
|
||||
match res {
|
||||
Ok(ret) => return Some(ret),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue