aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/init_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/init_command.rs')
-rw-r--r--crates/shirabe/src/command/init_command.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/init_command.rs b/crates/shirabe/src/command/init_command.rs
index 730658c..38e620b 100644
--- a/crates/shirabe/src/command/init_command.rs
+++ b/crates/shirabe/src/command/init_command.rs
@@ -455,8 +455,10 @@ impl InitCommand {
let mut repo_manager =
RepositoryFactory::manager(io.clone(), &config, None, None, None)?;
- let mut repos: Vec<Box<dyn crate::repository::RepositoryInterface>> =
- vec![Box::new(PlatformRepository::new(vec![], IndexMap::new())?)];
+ let mut repos: Vec<crate::repository::RepositoryInterfaceHandle> =
+ vec![crate::repository::RepositoryInterfaceHandle::new(
+ PlatformRepository::new(vec![], IndexMap::new())?,
+ )];
let mut create_default_packagist_repo = true;
for repo in &repositories {
let repo_config =