File tree Expand file tree Collapse file tree
crates/openshell-driver-vm/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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( ) ,
You can’t perform that action at this time.
0 commit comments