1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2023-05-04 18:53:38 +02:00
commit abe04b52d0
12 changed files with 101 additions and 104 deletions

View file

@ -13,12 +13,12 @@ pub async fn image_exists(docker: &Docker, image: &str) -> bool {
}
pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
if let Err(_) = docker.inspect_image(image).await {
if docker.inspect_image(image).await.is_err() {
println!("Pulling image {}", image);
let mut info_stream = docker.create_image(
Some(CreateImageOptions {
from_image: if image.contains(":") {
from_image: if image.contains(':') {
image.to_string()
} else {
format!("{}:latest", image)