diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
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; } } } |
