mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
clippy fixes
This commit is contained in:
parent
f8253fb68e
commit
abe04b52d0
12 changed files with 101 additions and 104 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue