Skip to content

Commit e78bf4a

Browse files
fix(hm): unbreak main — NonZeroU64 capacity in cache clean (#137)
1 parent 1b08a61 commit e78bf4a

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)