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 --- crates/shirabe/src/io/console_io.rs | 13 ++++++------- crates/shirabe/src/io/io_interface.rs | 4 +--- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'crates/shirabe/src/io') diff --git a/crates/shirabe/src/io/console_io.rs b/crates/shirabe/src/io/console_io.rs index eb7ab317..fe796d9e 100644 --- a/crates/shirabe/src/io/console_io.rs +++ b/crates/shirabe/src/io/console_io.rs @@ -27,7 +27,6 @@ use shirabe_php_shim::{ PhpMixed, array_search, function_exists, implode, in_array, is_array, is_string, mb_check_encoding, mb_convert_encoding, microtime, str_repeat, strip_tags, strlen, }; -use std::cell::RefCell; /// The Input/Output helper. #[derive(Debug)] @@ -41,10 +40,10 @@ pub struct ConsoleIO { /// `$this->helperSet->get('question')` on every ask. The Application class, which constructs /// this class, registers a single `QuestionHelper`. So this port holds the `QuestionHelper` /// directly instead of a `HelperSet`. - question_helper: RefCell, + question_helper: std::cell::RefCell, - pub(crate) last_message: RefCell, - pub(crate) last_message_err: RefCell, + pub(crate) last_message: std::cell::RefCell, + pub(crate) last_message_err: std::cell::RefCell, start_time: Option, verbosity_map: IndexMap, @@ -69,9 +68,9 @@ impl ConsoleIO { authentications: indexmap![], input, output, - question_helper: RefCell::new(question_helper), - last_message: RefCell::new(String::new()), - last_message_err: RefCell::new(String::new()), + question_helper: std::cell::RefCell::new(question_helper), + last_message: std::cell::RefCell::new(String::new()), + last_message_err: std::cell::RefCell::new(String::new()), start_time: None, verbosity_map, } diff --git a/crates/shirabe/src/io/io_interface.rs b/crates/shirabe/src/io/io_interface.rs index af3f688a..96bc1980 100644 --- a/crates/shirabe/src/io/io_interface.rs +++ b/crates/shirabe/src/io/io_interface.rs @@ -3,8 +3,6 @@ use crate::config::Config; use indexmap::IndexMap; use shirabe_php_shim::PhpMixed; -use std::cell::RefCell; -use std::rc::Rc; pub const QUIET: i64 = 1; pub const NORMAL: i64 = 2; @@ -167,7 +165,7 @@ pub trait IOInterface: IOInterfaceImmutable + IOInterfaceMutable { // `load_configuration`) are reached via `io.borrow_mut()`. Because the handle // does not implement `IOInterfaceMutable`, calling those directly on the handle // is a compile error rather than a runtime panic. -impl IOInterfaceImmutable for Rc> { +impl IOInterfaceImmutable for std::rc::Rc> { fn is_interactive(&self) -> bool { self.borrow().is_interactive() } -- cgit v1.3.1