aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/create_project_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/create_project_command.rs')
-rw-r--r--crates/shirabe/src/command/create_project_command.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/crates/shirabe/src/command/create_project_command.rs b/crates/shirabe/src/command/create_project_command.rs
index d5a8a0c..c669aa5 100644
--- a/crates/shirabe/src/command/create_project_command.rs
+++ b/crates/shirabe/src/command/create_project_command.rs
@@ -304,7 +304,7 @@ impl CreateProjectCommand {
let _ = &composer_json_repositories_config;
let placeholder_existing: IndexMap<
String,
- Box<dyn crate::repository::RepositoryInterface>,
+ crate::repository::RepositoryInterfaceHandle,
> = IndexMap::new();
let name = RepositoryFactory::generate_repository_name(
&PhpMixed::Int(index as i64),
@@ -737,12 +737,14 @@ impl CreateProjectCommand {
if repositories.is_none() {
// TODO(phase-b): default_repos needs &mut RepositoryManager but we hold &RepositoryManager.
let _ = rm;
- repository_set.add_repository(Box::new(CompositeRepository::new(
- RepositoryFactory::default_repos(Some(io.clone()), Some(config.clone()), None)?
- .into_iter()
- .map(|(_, v)| v)
- .collect(),
- )));
+ repository_set.add_repository(crate::repository::RepositoryInterfaceHandle::new(
+ CompositeRepository::new(
+ RepositoryFactory::default_repos(Some(io.clone()), Some(config.clone()), None)?
+ .into_iter()
+ .map(|(_, v)| v)
+ .collect(),
+ ),
+ ))?;
} else {
for repo in repositories.unwrap() {
let mut repo_config =