aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/command/help_command.rs
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-external-packages/src/symfony/console/command/help_command.rs
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-external-packages/src/symfony/console/command/help_command.rs')
-rw-r--r--crates/shirabe-external-packages/src/symfony/console/command/help_command.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/command/help_command.rs b/crates/shirabe-external-packages/src/symfony/console/command/help_command.rs
index 8ef488f7..7c32a733 100644
--- a/crates/shirabe-external-packages/src/symfony/console/command/help_command.rs
+++ b/crates/shirabe-external-packages/src/symfony/console/command/help_command.rs
@@ -14,15 +14,13 @@ use crate::symfony::console::input::input_interface::InputInterface;
use crate::symfony::console::input::input_option::InputOption;
use crate::symfony::console::output::output_interface::OutputInterface;
use shirabe_php_shim::PhpMixed;
-use std::cell::RefCell;
use std::ops::{Deref, DerefMut};
-use std::rc::Rc;
/// HelpCommand displays the help for a given command.
#[derive(Debug)]
pub struct HelpCommand {
inner: CommandData,
- command: RefCell<Option<Rc<RefCell<dyn Command>>>>,
+ command: std::cell::RefCell<Option<std::rc::Rc<std::cell::RefCell<dyn Command>>>>,
}
impl Deref for HelpCommand {
@@ -49,7 +47,7 @@ impl HelpCommand {
pub fn new() -> Self {
let command = HelpCommand {
inner: CommandData::new(None),
- command: RefCell::new(None),
+ command: std::cell::RefCell::new(None),
};
command
.configure()
@@ -57,7 +55,7 @@ impl HelpCommand {
command
}
- pub fn set_command(&self, command: Rc<RefCell<dyn Command>>) {
+ pub fn set_command(&self, command: std::rc::Rc<std::cell::RefCell<dyn Command>>) {
*self.command.borrow_mut() = Some(command);
}
@@ -135,8 +133,8 @@ impl Command for HelpCommand {
fn execute(
&self,
- 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>>,
) -> anyhow::Result<i64> {
if self.command.borrow().is_none() {
let application = self.get_application().unwrap();