From 5e31fa33c3b5cf726a57a063b8e7a070869250fe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 21:46:01 +0900 Subject: fix(compile): fix more random compile errors Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/repository/repository_manager.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'crates/shirabe/src/repository/repository_manager.rs') diff --git a/crates/shirabe/src/repository/repository_manager.rs b/crates/shirabe/src/repository/repository_manager.rs index cc43aed..a3c5b78 100644 --- a/crates/shirabe/src/repository/repository_manager.rs +++ b/crates/shirabe/src/repository/repository_manager.rs @@ -14,32 +14,34 @@ use crate::repository::repository_interface::RepositoryInterface; use crate::util::http_downloader::HttpDownloader; use crate::util::process_executor::ProcessExecutor; +#[derive(Debug)] pub struct RepositoryManager { local_repository: Option>, repositories: Vec>, repository_classes: IndexMap, io: Box, - config: Config, - http_downloader: HttpDownloader, + config: std::rc::Rc>, + http_downloader: std::rc::Rc>, event_dispatcher: Option, - process: ProcessExecutor, + process: std::rc::Rc>, } impl RepositoryManager { pub fn new( io: &dyn IOInterface, - config: &Config, - http_downloader: HttpDownloader, + config: std::rc::Rc>, + http_downloader: std::rc::Rc>, event_dispatcher: Option, - process: Option, + process: Option>>, ) -> Self { - let process = process.unwrap_or_else(|| ProcessExecutor::new(io)); + let process = process + .unwrap_or_else(|| std::rc::Rc::new(std::cell::RefCell::new(ProcessExecutor::new(io)))); Self { local_repository: None, repositories: vec![], repository_classes: IndexMap::new(), io: io.clone_box(), - config: config.clone(), + config, http_downloader, event_dispatcher, process, -- cgit v1.3.1