diff options
Diffstat (limited to 'crates/shirabe/src/downloader/xz_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/downloader/xz_downloader.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/crates/shirabe/src/downloader/xz_downloader.rs b/crates/shirabe/src/downloader/xz_downloader.rs index 976497a..10a7edf 100644 --- a/crates/shirabe/src/downloader/xz_downloader.rs +++ b/crates/shirabe/src/downloader/xz_downloader.rs @@ -80,7 +80,7 @@ impl XzDownloader { impl ChangeReportInterface for XzDownloader { fn get_local_changes( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, ) -> Result<Option<String>> { @@ -94,12 +94,14 @@ impl crate::downloader::DownloaderInterface for XzDownloader { self.inner.get_installation_source() } - fn as_change_report_interface(&self) -> Option<&dyn crate::downloader::ChangeReportInterface> { + fn as_change_report_interface( + &mut self, + ) -> Option<&mut dyn crate::downloader::ChangeReportInterface> { Some(self) } async fn download( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, prev_package: Option<PackageInterfaceHandle>, @@ -111,7 +113,7 @@ impl crate::downloader::DownloaderInterface for XzDownloader { } async fn prepare( - &self, + &mut self, r#type: &str, package: PackageInterfaceHandle, path: &str, @@ -123,7 +125,7 @@ impl crate::downloader::DownloaderInterface for XzDownloader { } async fn install( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, output: bool, @@ -132,7 +134,7 @@ impl crate::downloader::DownloaderInterface for XzDownloader { } async fn update( - &self, + &mut self, initial: PackageInterfaceHandle, target: PackageInterfaceHandle, path: &str, @@ -141,7 +143,7 @@ impl crate::downloader::DownloaderInterface for XzDownloader { } async fn remove( - &self, + &mut self, package: PackageInterfaceHandle, path: &str, output: bool, @@ -150,7 +152,7 @@ impl crate::downloader::DownloaderInterface for XzDownloader { } async fn cleanup( - &self, + &mut self, r#type: &str, package: PackageInterfaceHandle, path: &str, |
