Skip to content

Commit 0e413d6

Browse files
committed
chore(vm): fix formatting
Signed-off-by: Russell Bryant <russell.bryant@gmail.com>
1 parent 83dd1f2 commit 0e413d6

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

crates/openshell-driver-vm/src/driver.rs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -899,15 +899,13 @@ impl VmDriver {
899899
return Ok(None);
900900
}
901901

902-
let image_identity =
903-
inspect
904-
.id
905-
.filter(|id| !id.trim().is_empty())
906-
.ok_or_else(|| {
907-
Status::failed_precondition(format!(
908-
"local container image '{image_ref}' inspect response has no image ID"
909-
))
910-
})?;
902+
let image_identity = inspect.id.filter(|id| !id.trim().is_empty()).ok_or_else(
903+
|| {
904+
Status::failed_precondition(format!(
905+
"local container image '{image_ref}' inspect response has no image ID"
906+
))
907+
},
908+
)?;
911909
info!(
912910
image_ref = %image_ref,
913911
image_identity = %image_identity,
@@ -1539,11 +1537,9 @@ async fn connect_local_container_engine() -> Option<Docker> {
15391537

15401538
let podman_socket = podman_socket_path();
15411539
if podman_socket.exists() {
1542-
if let Ok(docker) = Docker::connect_with_unix(
1543-
podman_socket.to_str()?,
1544-
120,
1545-
bollard::API_DEFAULT_VERSION,
1546-
) {
1540+
if let Ok(docker) =
1541+
Docker::connect_with_unix(podman_socket.to_str()?, 120, bollard::API_DEFAULT_VERSION)
1542+
{
15471543
if docker.ping().await.is_ok() {
15481544
info!(
15491545
socket = %podman_socket.display(),

0 commit comments

Comments
 (0)