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/plugin/plugin_interface.rs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/plugin/plugin_interface.rs') diff --git a/crates/shirabe/src/plugin/plugin_interface.rs b/crates/shirabe/src/plugin/plugin_interface.rs index 486dbeac..5a92a87a 100644 --- a/crates/shirabe/src/plugin/plugin_interface.rs +++ b/crates/shirabe/src/plugin/plugin_interface.rs @@ -3,17 +3,27 @@ use crate::composer::ComposerHandle; use crate::io::IOInterface; use crate::plugin::Capable; -use std::cell::RefCell; -use std::rc::Rc; pub const PLUGIN_API_VERSION: &str = "2.9.0"; pub trait PluginInterface: std::fmt::Debug { - fn activate(&mut self, composer: &ComposerHandle, io: Rc>); + fn activate( + &mut self, + composer: &ComposerHandle, + io: std::rc::Rc>, + ); - fn deactivate(&mut self, composer: &ComposerHandle, io: Rc>); + fn deactivate( + &mut self, + composer: &ComposerHandle, + io: std::rc::Rc>, + ); - fn uninstall(&mut self, composer: &ComposerHandle, io: Rc>); + fn uninstall( + &mut self, + composer: &ComposerHandle, + io: std::rc::Rc>, + ); // TODO(plugin): PHP-side `instanceof` checks for EventSubscriberInterface / Capable. // EventSubscriberInterface is not dyn-compatible (its only method is associated, not -- cgit v1.3.1