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/helper/table.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'crates/shirabe-external-packages/src/symfony/console/helper/table.rs') diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/table.rs b/crates/shirabe-external-packages/src/symfony/console/helper/table.rs index 04d5f1f6..cae3f896 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/table.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/table.rs @@ -15,8 +15,6 @@ use crate::symfony::console::output::console_section_output::ConsoleSectionOutpu use crate::symfony::console::output::output_interface::OutputInterface; use indexmap::IndexMap; use shirabe_php_shim::PhpMixed; -use std::cell::RefCell; -use std::rc::Rc; /// A single cell within a table row. /// @@ -58,7 +56,7 @@ impl Cell { } } - fn style(&self) -> Option> { + fn style(&self) -> Option> { match self { Cell::Cell(c) => c.get_style(), Cell::Separator(s) => s.get_style(), @@ -246,7 +244,7 @@ pub struct Table { /// Number of columns cache. number_of_columns: Option, - output: Rc>, + output: std::rc::Rc>, style: TableStyle, @@ -276,7 +274,7 @@ fn styles() -> &'static std::sync::Mutex>> { } impl Table { - pub fn new(output: Rc>) -> Self { + pub fn new(output: std::rc::Rc>) -> Self { let mut styles_guard = styles().lock().unwrap(); if styles_guard.is_none() { *styles_guard = Some(Self::init_styles()); @@ -1383,7 +1381,9 @@ impl Table { ))) } - fn formatter_is_wrappable(_output: &Rc>) -> bool { + fn formatter_is_wrappable( + _output: &std::rc::Rc>, + ) -> bool { // PHP: $this->output->getFormatter() instanceof WrappableOutputFormatterInterface // TODO(phase-c/d): instanceof on `dyn OutputFormatterInterface` needs an AsAny supertrait // on OutputFormatterInterface to downcast to the concrete wrappable formatter; adding it @@ -1399,7 +1399,9 @@ impl Table { Helper::remove_decoration(&mut *formatter, string) } - fn output_is_console_section(output: &Rc>) -> bool { + fn output_is_console_section( + output: &std::rc::Rc>, + ) -> bool { // PHP: $this->output instanceof ConsoleSectionOutput let borrowed = output.borrow(); (*borrowed) @@ -1417,7 +1419,7 @@ impl Table { fn table_cell_options_colspan_style( colspan: i64, - style: Option>, + style: Option>, ) -> IndexMap { // PHP: ['colspan' => $colspan, 'style' => $style] let mut options = IndexMap::new(); -- cgit v1.3.1