aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/pre_file_download_event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin/pre_file_download_event.rs')
-rw-r--r--crates/shirabe/src/plugin/pre_file_download_event.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/plugin/pre_file_download_event.rs b/crates/shirabe/src/plugin/pre_file_download_event.rs
index 0e2be7a..37e1e1e 100644
--- a/crates/shirabe/src/plugin/pre_file_download_event.rs
+++ b/crates/shirabe/src/plugin/pre_file_download_event.rs
@@ -9,7 +9,7 @@ use crate::util::http_downloader::HttpDownloader;
#[derive(Debug)]
pub struct PreFileDownloadEvent {
inner: Event,
- http_downloader: HttpDownloader,
+ http_downloader: std::rc::Rc<std::cell::RefCell<HttpDownloader>>,
processed_url: String,
custom_cache_key: Option<String>,
r#type: String,
@@ -20,7 +20,7 @@ pub struct PreFileDownloadEvent {
impl PreFileDownloadEvent {
pub fn new(
name: String,
- http_downloader: HttpDownloader,
+ http_downloader: std::rc::Rc<std::cell::RefCell<HttpDownloader>>,
processed_url: String,
r#type: String,
context: PhpMixed,
@@ -36,7 +36,7 @@ impl PreFileDownloadEvent {
}
}
- pub fn get_http_downloader(&self) -> &HttpDownloader {
+ pub fn get_http_downloader(&self) -> &std::rc::Rc<std::cell::RefCell<HttpDownloader>> {
&self.http_downloader
}