Skip to content

Commit b5bfb8e

Browse files
committed
fix(hm): pass NonZeroU64 capacity to ImageRegistry::open in cache clean
main was broken: #117 changed ImageRegistry::open to take NonZeroU64, but the cache-clean caller still passed u64::MAX (E0308). It slipped in as a semantic merge (no textual conflict), so main's hm binary stopped compiling on stable. This unbreaks main; every open PR is red only because GitHub builds them merged with this broken main.
1 parent 1b08a61 commit b5bfb8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/hm/src/commands/cache/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub async fn handle_clean() -> Result<i32> {
5555
/// cache index is reset.
5656
async fn remove_registered_images(db_path: &std::path::Path) {
5757
// Capacity here is irrelevant — we only read existing rows, never insert.
58-
let registry = match hm_vm::ImageRegistry::open(db_path, u64::MAX) {
58+
let registry = match hm_vm::ImageRegistry::open(db_path, std::num::NonZeroU64::MAX) {
5959
Ok(r) => r,
6060
Err(e) => {
6161
tracing::warn!(error = %e, "could not open image registry; skipping image removal");

0 commit comments

Comments
 (0)