From 447aab6a0438f795383a43a4aa53804e194d8b1c Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 23 Jul 2022 04:06:17 +0100 Subject: [PATCH] Changed to a more readable name --- src/internal/structs.rs | 2 +- src/workspace/read.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/structs.rs b/src/internal/structs.rs index 1dad2b4..5d83b84 100755 --- a/src/internal/structs.rs +++ b/src/internal/structs.rs @@ -47,7 +47,7 @@ pub struct ConfigModeWorkspace {} #[derive(Debug, Deserialize)] pub struct ConfigRepositories { - pub name: Vec, + pub repos: Vec, pub urls: HashMap, } diff --git a/src/workspace/read.rs b/src/workspace/read.rs index 4ffaed5..03412ad 100755 --- a/src/workspace/read.rs +++ b/src/workspace/read.rs @@ -39,7 +39,7 @@ pub fn read_cfg(verbose: bool) -> Config { let mut expanded_repos: Vec = vec![]; // Parsing repos from the config file - for x in config.repositories.name { + for x in config.repositories.repos { log!(verbose, "Parsing repo: {:?}", x); // Splits the repo name and index inta a SplitRepo struct let split: Vec<&str> = x.split(':').collect();