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/command/run_script_command.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'crates/shirabe/src/command/run_script_command.rs') diff --git a/crates/shirabe/src/command/run_script_command.rs b/crates/shirabe/src/command/run_script_command.rs index 7fc9703f..c256eea2 100644 --- a/crates/shirabe/src/command/run_script_command.rs +++ b/crates/shirabe/src/command/run_script_command.rs @@ -18,8 +18,6 @@ use shirabe_external_packages::symfony::console::input::InputInterface; use shirabe_external_packages::symfony::console::output::OutputInterface; use shirabe_php_shim::PhpMixed; use shirabe_php_shim::{InvalidArgumentException, RuntimeException}; -use std::cell::RefCell; -use std::rc::Rc; #[derive(Debug)] pub struct RunScriptCommand { @@ -59,7 +57,10 @@ impl RunScriptCommand { command } - fn list_scripts(&self, output: Rc>) -> anyhow::Result { + fn list_scripts( + &self, + output: std::rc::Rc>, + ) -> anyhow::Result { let scripts = self.get_scripts()?; if scripts.is_empty() { return Ok(0); @@ -181,8 +182,8 @@ impl Command for RunScriptCommand { fn interact( &self, - input: Rc>, - _output: Rc>, + input: std::rc::Rc>, + _output: std::rc::Rc>, ) { let _ = (|| -> anyhow::Result<()> { let scripts = self.get_scripts()?; @@ -223,8 +224,8 @@ impl Command for RunScriptCommand { fn execute( &self, - input: Rc>, - output: Rc>, + input: std::rc::Rc>, + output: std::rc::Rc>, ) -> anyhow::Result { if input .borrow() @@ -323,8 +324,8 @@ impl Command for RunScriptCommand { fn initialize( &self, - input: Rc>, - output: Rc>, + input: std::rc::Rc>, + output: std::rc::Rc>, ) -> anyhow::Result<()> { base_command_initialize(self, input, output) } -- cgit v1.3.1