From 9d9da0d1512202af7802d13b1c3c33a1a077a84e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 10 Aug 2026 04:38:35 +0900 Subject: refactor(symfony): hide leaf modules behind their parent re-exports Every parent module in the symfony-* crates already re-exported its leaf modules with `pub use`, so each item was reachable by two paths. Make the leaf modules private and route all callers through the single re-exported path. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-symfony-console/src/style/output_style.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe-symfony-console/src/style/output_style.rs') diff --git a/crates/shirabe-symfony-console/src/style/output_style.rs b/crates/shirabe-symfony-console/src/style/output_style.rs index 17c9489e..2881547d 100644 --- a/crates/shirabe-symfony-console/src/style/output_style.rs +++ b/crates/shirabe-symfony-console/src/style/output_style.rs @@ -3,8 +3,8 @@ use crate::formatter::OutputFormatterInterface; use crate::helper::ProgressBar; use crate::output::ConsoleOutputInterface; +use crate::output::OUTPUT_NORMAL; use crate::output::OutputInterface; -use crate::output::output_interface::OUTPUT_NORMAL; /// Decorates output to add console style guide helpers. #[derive(Debug)] @@ -50,7 +50,7 @@ impl OutputStyle { // ConsoleOutput is the only OutputInterface implementor that also implements // ConsoleOutputInterface, so `instanceof ConsoleOutputInterface` reduces to this downcast. shirabe_php_shim::AsAny::as_any(&*output.borrow()) - .downcast_ref::() + .downcast_ref::() .is_some() } @@ -58,11 +58,11 @@ impl OutputStyle { /// borrow of the concrete type serves as the cast result. fn as_console_output_interface( output: &std::rc::Rc>, - ) -> Option> { + ) -> Option> { std::cell::Ref::filter_map(output.borrow(), |output| { output .as_any() - .downcast_ref::() + .downcast_ref::() }) .ok() } -- cgit v1.3.1-4-g156e