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-core/src/composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart-core/src/composer.rs') diff --git a/crates/mozart-core/src/composer.rs b/crates/mozart-core/src/composer.rs index c76f428..64c3c97 100644 --- a/crates/mozart-core/src/composer.rs +++ b/crates/mozart-core/src/composer.rs @@ -246,7 +246,7 @@ impl LocalRepository { /// "at most one package of each name, with aliases unfolded". Mozart /// does not yet model alias packages, so this is currently a straight /// pass-through over the loaded packages. - pub fn canonical_packages(&self) -> impl Iterator { + pub fn get_canonical_packages(&self) -> impl Iterator { self.packages.iter() } -- cgit v1.3.1