aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/io
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-11 16:33:05 +0900
committernsfisis <nsfisis@gmail.com>2026-07-11 16:33:05 +0900
commit27d00055df8691a6bd99aaf38633a7338b16cc6a (patch)
tree4af17ccff5f8c2d09156fa62c559e60e3e683dac /crates/shirabe/src/io
parent1ec2220def43e37e5a65b96dde93c19b493258f4 (diff)
downloadphp-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/src/io')
-rw-r--r--crates/shirabe/src/io/console_io.rs13
-rw-r--r--crates/shirabe/src/io/io_interface.rs4
2 files changed, 7 insertions, 10 deletions
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<QuestionHelper>,
+ question_helper: std::cell::RefCell<QuestionHelper>,
- pub(crate) last_message: RefCell<String>,
- pub(crate) last_message_err: RefCell<String>,
+ pub(crate) last_message: std::cell::RefCell<String>,
+ pub(crate) last_message_err: std::cell::RefCell<String>,
start_time: Option<f64>,
verbosity_map: IndexMap<i64, i64>,
@@ -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<RefCell<dyn IOInterface>> {
+impl IOInterfaceImmutable for std::rc::Rc<std::cell::RefCell<dyn IOInterface>> {
fn is_interactive(&self) -> bool {
self.borrow().is_interactive()
}