aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin')
-rw-r--r--crates/shirabe/src/plugin/capability/command_provider.rs2
-rw-r--r--crates/shirabe/src/plugin/pre_pool_create_event.rs16
2 files changed, 9 insertions, 9 deletions
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<Box<BaseCommand>>;
+ fn get_commands(&self) -> Vec<Box<dyn BaseCommand>>;
}
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<String, i64>,
root_aliases: IndexMap<String, IndexMap<String, IndexMap<String, String>>>,
root_references: IndexMap<String, String>,
- packages: Vec<BasePackage>,
- unacceptable_fixed_packages: Vec<BasePackage>,
+ packages: Vec<Box<dyn BasePackage>>,
+ unacceptable_fixed_packages: Vec<Box<dyn BasePackage>>,
}
impl PrePoolCreateEvent {
@@ -30,8 +30,8 @@ impl PrePoolCreateEvent {
stability_flags: IndexMap<String, i64>,
root_aliases: IndexMap<String, IndexMap<String, IndexMap<String, String>>>,
root_references: IndexMap<String, String>,
- packages: Vec<BasePackage>,
- unacceptable_fixed_packages: Vec<BasePackage>,
+ packages: Vec<Box<dyn BasePackage>>,
+ unacceptable_fixed_packages: Vec<Box<dyn BasePackage>>,
) -> Self {
Self {
inner: Event::new(name, vec![], IndexMap::new()),
@@ -72,19 +72,19 @@ impl PrePoolCreateEvent {
&self.root_references
}
- pub fn get_packages(&self) -> &Vec<BasePackage> {
+ pub fn get_packages(&self) -> &Vec<Box<dyn BasePackage>> {
&self.packages
}
- pub fn get_unacceptable_fixed_packages(&self) -> &Vec<BasePackage> {
+ pub fn get_unacceptable_fixed_packages(&self) -> &Vec<Box<dyn BasePackage>> {
&self.unacceptable_fixed_packages
}
- pub fn set_packages(&mut self, packages: Vec<BasePackage>) {
+ pub fn set_packages(&mut self, packages: Vec<Box<dyn BasePackage>>) {
self.packages = packages;
}
- pub fn set_unacceptable_fixed_packages(&mut self, packages: Vec<BasePackage>) {
+ pub fn set_unacceptable_fixed_packages(&mut self, packages: Vec<Box<dyn BasePackage>>) {
self.unacceptable_fixed_packages = packages;
}
}