Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Aug 15, 2024
1 parent 67c08f7 commit fd53cbd
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions cmd/soroban-cli/src/commands/network/container/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,19 @@ impl Runner {
);

while let Some(result) = stream.try_next().await.transpose() {
match result {
Ok(item) => {
if let Some(status) = item.status {
if status.contains("Pulling from")
|| status.contains("Digest")
|| status.contains("Status")
{
self.print.infoln(format!("{}", status));
}
if let Ok(item) = result {
if let Some(status) = item.status {
if status.contains("Pulling from")
|| status.contains("Digest")
|| status.contains("Status")
{
self.print.infoln(status);
}
}
Err(_) => {
self.print.warnln("Failed to fetch image from Docker Hub.");
self.print.warnln("Attempting to start local quickstart image instead. Please note this image may be out-of-date.");
break;
}
} else {
self.print.warnln("Failed to fetch image from Docker Hub.");
self.print.warnln("Attempting to start local quickstart image instead. Please note this image may be out-of-date.");
break;
}
}

Expand Down

0 comments on commit fd53cbd

Please sign in to comment.