diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-11 16:33:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-11 16:33:05 +0900 |
| commit | 27d00055df8691a6bd99aaf38633a7338b16cc6a (patch) | |
| tree | 4af17ccff5f8c2d09156fa62c559e60e3e683dac /crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs | |
| parent | 1ec2220def43e37e5a65b96dde93c19b493258f4 (diff) | |
| download | php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.gz php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.zst php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.zip | |
chore: use fully-qualified name for Rc/RefCell
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/style/symfony_style.rs | 22 |
1 files changed, 11 insertions, 11 deletions
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<RefCell<dyn InputInterface>>, - output: Rc<RefCell<dyn OutputInterface>>, + input: std::rc::Rc<std::cell::RefCell<dyn InputInterface>>, + output: std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>, question_helper: Option<SymfonyQuestionHelper>, progress_bar: Option<ProgressBar>, line_length: i64, @@ -43,8 +41,8 @@ pub const MAX_LINE_LENGTH: i64 = 120; impl SymfonyStyle { pub fn new( - input: Rc<RefCell<dyn InputInterface>>, - output: Rc<RefCell<dyn OutputInterface>>, + input: std::rc::Rc<std::cell::RefCell<dyn InputInterface>>, + output: std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>, ) -> 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<RefCell<dyn OutputInterface>> + .section() as std::rc::Rc<std::cell::RefCell<dyn OutputInterface>> } else { self.output.clone() }; @@ -435,11 +433,13 @@ impl SymfonyStyle { lines } - fn get_formatter(&self) -> Rc<RefCell<dyn OutputFormatterInterface>> { + fn get_formatter(&self) -> std::rc::Rc<std::cell::RefCell<dyn OutputFormatterInterface>> { self.output.borrow().get_formatter() } - fn is_console_output_interface(output: &Rc<RefCell<dyn OutputInterface>>) -> bool { + fn is_console_output_interface( + output: &std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>, + ) -> 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<RefCell<dyn OutputInterface>>, - ) -> Option<Rc<RefCell<dyn ConsoleOutputInterface>>> { + _output: &std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>, + ) -> Option<std::rc::Rc<std::cell::RefCell<dyn ConsoleOutputInterface>>> { todo!() } |
