From 27d00055df8691a6bd99aaf38633a7338b16cc6a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 11 Jul 2026 16:33:05 +0900 Subject: chore: use fully-qualified name for Rc/RefCell --- .../src/symfony/console/style/symfony_style.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs') diff --git a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs index 425c815b..69cd4191 100644 --- a/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs @@ -24,15 +24,13 @@ use crate::symfony::console::style::output_style::OutputStyle; use crate::symfony::console::style::style_interface::StyleInterface; use crate::symfony::console::terminal::Terminal; use shirabe_php_shim::PhpMixed; -use std::cell::RefCell; -use std::rc::Rc; /// Output decorator helpers for the Symfony Style Guide. #[derive(Debug)] pub struct SymfonyStyle { inner: OutputStyle, - input: Rc>, - output: Rc>, + input: std::rc::Rc>, + output: std::rc::Rc>, question_helper: Option, progress_bar: Option, line_length: i64, @@ -43,8 +41,8 @@ pub const MAX_LINE_LENGTH: i64 = 120; impl SymfonyStyle { pub fn new( - input: Rc>, - output: Rc>, + input: std::rc::Rc>, + output: std::rc::Rc>, ) -> Self { let buffered_output = TrimmedBufferOutput::new( if std::path::MAIN_SEPARATOR == '\\' { @@ -260,7 +258,7 @@ impl SymfonyStyle { Self::as_console_output_interface(&self.output) .unwrap() .borrow() - .section() as Rc> + .section() as std::rc::Rc> } else { self.output.clone() }; @@ -435,11 +433,13 @@ impl SymfonyStyle { lines } - fn get_formatter(&self) -> Rc> { + fn get_formatter(&self) -> std::rc::Rc> { self.output.borrow().get_formatter() } - fn is_console_output_interface(output: &Rc>) -> bool { + fn is_console_output_interface( + output: &std::rc::Rc>, + ) -> bool { // 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()) @@ -448,8 +448,8 @@ impl SymfonyStyle { } fn as_console_output_interface( - _output: &Rc>, - ) -> Option>> { + _output: &std::rc::Rc>, + ) -> Option>> { todo!() } -- cgit v1.3.1