From 3a388b98a9aa6a14b1c7f7dc909c109cf9837800 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 16 Aug 2026 00:59:54 +0900 Subject: refactor: narrow pub(crate) items to private Porting mapped every PHP `protected` member onto `pub(crate)`, which is wider than nearly all of them need. Each item demoted here is reached only from the module that defines it, so the crate-wide visibility conveyed nothing. Every `pub(crate)` that survives has at least one reader in another module of the same crate. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/dependency_resolver/solver.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'crates/shirabe/src/dependency_resolver/solver.rs') diff --git a/crates/shirabe/src/dependency_resolver/solver.rs b/crates/shirabe/src/dependency_resolver/solver.rs index a9453a3e..cb398a0c 100644 --- a/crates/shirabe/src/dependency_resolver/solver.rs +++ b/crates/shirabe/src/dependency_resolver/solver.rs @@ -26,25 +26,25 @@ use shirabe_semver::constraint::AnyConstraint; #[derive(Debug)] pub struct Solver { - pub(crate) policy: std::rc::Rc, - pub(crate) pool: std::rc::Rc>, + policy: std::rc::Rc, + pool: std::rc::Rc>, - pub(crate) rules: RuleSet, + rules: RuleSet, - pub(crate) watch_graph: RuleWatchGraph, - pub(crate) decisions: Decisions, - pub(crate) fixed_map: IndexMap, + watch_graph: RuleWatchGraph, + decisions: Decisions, + fixed_map: IndexMap, - pub(crate) propagate_index: i64, + propagate_index: i64, /// Pairs of `(literals, level)` — PHP indexes into these with the BRANCH_* constants. - pub(crate) branches: Vec<(Vec, i64)>, - pub(crate) problems: Vec, - pub(crate) learned_pool: Vec>>>, - pub(crate) learned_why: IndexMap, + branches: Vec<(Vec, i64)>, + problems: Vec, + learned_pool: Vec>>>, + learned_why: IndexMap, pub test_flag_learned_positive_literal: bool, - pub(crate) io: std::rc::Rc>, + io: std::rc::Rc>, } impl Solver { -- cgit v1.3.1-4-g156e