From 0802fd44ed11283f15900d2993fc495acf1bed01 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 9 May 2026 14:44:26 +0900 Subject: refactor(commands): consolidate get_platform_requirement_filter into shared module Removes the per-command duplicate implementations of get_platform_requirement_filter from dump_autoload and reinstall, and lifts a single canonical version into commands.rs. --- crates/mozart/src/commands/clear_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/commands/clear_cache.rs') diff --git a/crates/mozart/src/commands/clear_cache.rs b/crates/mozart/src/commands/clear_cache.rs index ee8aad9..8fdf665 100644 --- a/crates/mozart/src/commands/clear_cache.rs +++ b/crates/mozart/src/commands/clear_cache.rs @@ -68,7 +68,7 @@ pub async fn execute( match key { "cache-files-dir" => cache.gc(config.cache_files_ttl, config.cache_files_maxsize)?, "cache-repo-dir" => cache.gc(config.cache_files_ttl, 1024 * 1024 * 1024 /* 1GB, this should almost never clear anything that is not outdated */)?, - "cache-vcs-dir" => cache.gc_vcs(config.cache_files_ttl)?, + "cache-vcs-dir" => cache.gc_vcs_cache(config.cache_files_ttl)?, _ => unreachable!(), }; } else { -- cgit v1.3.1