fn image_identifier(using_windows_containers: bool, target: target::PackageTarget) -> String {
    let version: Vec<&str> = VERSION.split('/').collect();
    let (img, studio_target) = if using_windows_containers {
        (DOCKER_WINDOWS_IMAGE, target::X86_64_WINDOWS)
    } else {
        let t = match target {
            target::X86_64_LINUX_KERNEL2 => target::X86_64_LINUX_KERNEL2,
            _ => target::X86_64_LINUX,
        };
        (DOCKER_IMAGE, t)
    };

    henv::var(DOCKER_IMAGE_ENVVAR).unwrap_or_else(|_| {
                                      format!("{}-{}:{}", img, studio_target, version[0])
                                  })
}
/// Returns the Docker Studio image with tag for the desired version which corresponds to the
/// same version (minus release) as this program.
Returns the Docker Studio image with tag for the desired version which corresponds to the
same version (minus release) as this program.
Returns the Docker Studio image with tag for the desired version which corresponds to the same version ( minus release ) as this program .
fn image_identifier(using_windows_containers: bool, target: target::PackageTarget) -> String {
    let version: Vec<&str> = VERSION.split('/').collect();
    let (img, studio_target) = if using_windows_containers {
        (DOCKER_WINDOWS_IMAGE, target::X86_64_WINDOWS)
    } else {
        let t = match target {
            target::X86_64_LINUX_KERNEL2 => target::X86_64_LINUX_KERNEL2,
            _ => target::X86_64_LINUX,
        };
        (DOCKER_IMAGE, t)
    };
    henv::var(DOCKER_IMAGE_ENVVAR).unwrap_or_else(|_| {
                                      format!("{}-{}:{}", img, studio_target, version[0])
                                  })
}
fn image_identifier ( using_windows_containers : bool , target : target :: PackageTarget ) -> String { let version : Vec < & str > = VERSION . split ( '/' ) . collect ( ) ; let ( img , studio_target ) = if using_windows_containers { ( DOCKER_WINDOWS_IMAGE , target :: X86_64_WINDOWS ) } else { let t = match target { target :: X86_64_LINUX_KERNEL2 => target :: X86_64_LINUX_KERNEL2 , _ => target :: X86_64_LINUX , } ; ( DOCKER_IMAGE , t ) } ; henv :: var ( DOCKER_IMAGE_ENVVAR ) . unwrap_or_else ( | _ | { format ! ( " " img studio_target version [ 0 ] ) } ) }
Returns the Docker Studio image with tag for the desired version which corresponds to the
same version (minus release) as this program.
Returns the Docker Studio image with tag for the desired version which corresponds to the same version ( minus release ) as this program .
using_windows_containers
bool
target
target::PackageTarget
using_windows_containers
bool
target
target::PackageTarget