Try to restore cargo fmt

This commit is contained in:
Roey Darwish Dror
2018-12-11 16:00:19 +02:00
parent 4c1d26e120
commit f23b6435bf
14 changed files with 84 additions and 46 deletions

View File

@@ -83,13 +83,14 @@ where
}
let should_ask = !running || !no_retry;
let should_retry = should_ask && should_retry(running).map_err(|e| {
if e.kind() == ErrorKind::Interrupted {
Error::from(Interrupted)
} else {
Error::from(e)
}
})?;
let should_retry = should_ask
&& should_retry(running).map_err(|e| {
if e.kind() == ErrorKind::Interrupted {
Error::from(Interrupted)
} else {
Error::from(e)
}
})?;
if !should_retry {
return Ok(Some((key, success)));