summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-02-08 17:21:34 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-02-08 18:23:18 +0100
commit047a4387efdd097f949bd2cfdb79f6e5425dc931 (patch)
tree0f0a4830bd16886364a3b68159defc8455df79a6 /src/main.rs
parent0fd24af76e57a946129f7f9943cb61771e00c1b3 (diff)
Add struct to represent image row
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 6eb2cb7..24a1b01 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -331,9 +331,9 @@ fn run_tool(db: &dyn Db, reg: &dyn Registries, repos: &Vec<Repository>, mut infi
.unwrap_or("registry.hub.docker.com");
let image_name = &file.content[img.image.clone()];
- if let Some((_, expires_at)) = db.get_image(registry, image_name) {
- if expires_at < min_expiry {
- min_expiry = expires_at;
+ if let Some(img) = db.get_image(registry, image_name) {
+ if img.expires_at < min_expiry {
+ min_expiry = img.expires_at;
}
}
}