aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer/plugin_installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/installer/plugin_installer.rs')
-rw-r--r--crates/shirabe/src/installer/plugin_installer.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/shirabe/src/installer/plugin_installer.rs b/crates/shirabe/src/installer/plugin_installer.rs
index 38fcb0d..00b2210 100644
--- a/crates/shirabe/src/installer/plugin_installer.rs
+++ b/crates/shirabe/src/installer/plugin_installer.rs
@@ -2,6 +2,7 @@
use crate::composer::PartialComposerWeakHandle;
use crate::installer::BinaryInstaller;
+use crate::installer::BinaryPresenceInterface;
use crate::installer::InstallerInterface;
use crate::installer::LibraryInstaller;
use crate::io::IOInterface;
@@ -176,4 +177,12 @@ impl InstallerInterface for PluginInstaller {
fn get_install_path(&self, package: PackageInterfaceHandle) -> Option<String> {
self.inner.get_install_path(package)
}
+
+ fn as_binary_presence_interface(&mut self) -> Option<&mut dyn BinaryPresenceInterface> {
+ Some(&mut self.inner)
+ }
+
+ fn as_plugin_installer_mut(&mut self) -> Option<&mut PluginInstaller> {
+ Some(self)
+ }
}