From 1fe1cd3fe9da3f34d8529a0c4cc89fdc61af5065 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 17:44:03 +0900 Subject: fix(compile): add dyn keyword to all trait object usages (E0782) Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/plugin/capability/command_provider.rs | 2 +- crates/shirabe/src/plugin/pre_pool_create_event.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/shirabe/src/plugin') diff --git a/crates/shirabe/src/plugin/capability/command_provider.rs b/crates/shirabe/src/plugin/capability/command_provider.rs index adc0148..f96c9e9 100644 --- a/crates/shirabe/src/plugin/capability/command_provider.rs +++ b/crates/shirabe/src/plugin/capability/command_provider.rs @@ -5,5 +5,5 @@ use crate::command::base_command::BaseCommand; use crate::plugin::capability::capability::Capability; pub trait CommandProvider: Capability { - fn get_commands(&self) -> Vec>; + fn get_commands(&self) -> Vec>; } diff --git a/crates/shirabe/src/plugin/pre_pool_create_event.rs b/crates/shirabe/src/plugin/pre_pool_create_event.rs index 7363b08..5d1a4e9 100644 --- a/crates/shirabe/src/plugin/pre_pool_create_event.rs +++ b/crates/shirabe/src/plugin/pre_pool_create_event.rs @@ -16,8 +16,8 @@ pub struct PrePoolCreateEvent { stability_flags: IndexMap, root_aliases: IndexMap>>, root_references: IndexMap, - packages: Vec, - unacceptable_fixed_packages: Vec, + packages: Vec>, + unacceptable_fixed_packages: Vec>, } impl PrePoolCreateEvent { @@ -30,8 +30,8 @@ impl PrePoolCreateEvent { stability_flags: IndexMap, root_aliases: IndexMap>>, root_references: IndexMap, - packages: Vec, - unacceptable_fixed_packages: Vec, + packages: Vec>, + unacceptable_fixed_packages: Vec>, ) -> Self { Self { inner: Event::new(name, vec![], IndexMap::new()), @@ -72,19 +72,19 @@ impl PrePoolCreateEvent { &self.root_references } - pub fn get_packages(&self) -> &Vec { + pub fn get_packages(&self) -> &Vec> { &self.packages } - pub fn get_unacceptable_fixed_packages(&self) -> &Vec { + pub fn get_unacceptable_fixed_packages(&self) -> &Vec> { &self.unacceptable_fixed_packages } - pub fn set_packages(&mut self, packages: Vec) { + pub fn set_packages(&mut self, packages: Vec>) { self.packages = packages; } - pub fn set_unacceptable_fixed_packages(&mut self, packages: Vec) { + pub fn set_unacceptable_fixed_packages(&mut self, packages: Vec>) { self.unacceptable_fixed_packages = packages; } } -- cgit v1.3.1