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.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/crates/shirabe/src/installer/plugin_installer.rs b/crates/shirabe/src/installer/plugin_installer.rs
index 7ff5eb33..ca8864ab 100644
--- a/crates/shirabe/src/installer/plugin_installer.rs
+++ b/crates/shirabe/src/installer/plugin_installer.rs
@@ -38,13 +38,13 @@ impl PluginInstaller {
}
}
- pub fn disable_plugins(&mut self) {
+ pub fn disable_plugins(&self) {
// TODO(plugin): disable plugins via plugin manager
self.get_plugin_manager().borrow_mut().disable_plugins();
}
async fn rollback_install(
- &mut self,
+ &self,
e: anyhow::Error,
repo: &mut dyn InstalledRepositoryInterface,
package: PackageInterfaceHandle,
@@ -78,7 +78,7 @@ impl InstallerInterface for PluginInstaller {
}
fn is_installed(
- &mut self,
+ &self,
repo: &dyn InstalledRepositoryInterface,
package: PackageInterfaceHandle,
) -> bool {
@@ -86,7 +86,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn prepare(
- &mut self,
+ &self,
r#type: &str,
package: PackageInterfaceHandle,
prev_package: Option<PackageInterfaceHandle>,
@@ -114,7 +114,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn download(
- &mut self,
+ &self,
package: PackageInterfaceHandle,
prev_package: Option<PackageInterfaceHandle>,
) -> anyhow::Result<Option<PhpMixed>> {
@@ -134,7 +134,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn install(
- &mut self,
+ &self,
repo: &mut dyn InstalledRepositoryInterface,
package: PackageInterfaceHandle,
) -> anyhow::Result<Option<PhpMixed>> {
@@ -148,7 +148,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn update(
- &mut self,
+ &self,
repo: &mut dyn InstalledRepositoryInterface,
initial: PackageInterfaceHandle,
target: PackageInterfaceHandle,
@@ -164,7 +164,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn uninstall(
- &mut self,
+ &self,
repo: &mut dyn InstalledRepositoryInterface,
package: PackageInterfaceHandle,
) -> anyhow::Result<Option<PhpMixed>> {
@@ -177,7 +177,7 @@ impl InstallerInterface for PluginInstaller {
}
async fn cleanup(
- &mut self,
+ &self,
r#type: &str,
package: PackageInterfaceHandle,
prev_package: Option<PackageInterfaceHandle>,
@@ -185,15 +185,15 @@ impl InstallerInterface for PluginInstaller {
self.inner.cleanup(r#type, package, prev_package).await
}
- fn get_install_path(&mut self, package: PackageInterfaceHandle) -> Option<String> {
+ 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_binary_presence_interface(&self) -> Option<&dyn BinaryPresenceInterface> {
+ Some(&self.inner)
}
- fn as_plugin_installer_mut(&mut self) -> Option<&mut PluginInstaller> {
+ fn as_plugin_installer(&self) -> Option<&PluginInstaller> {
Some(self)
}
}