Make tree root config non-optional

This commit is contained in:
2021-11-19 22:16:42 +01:00
parent 1efbf6728d
commit c0172f9af5
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ pub struct Config {
#[derive(Debug, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct Tree {
pub root: Option<String>,
pub root: String,
pub repos: Option<Vec<Repo>>,
}

View File

@@ -353,7 +353,7 @@ fn find_in_tree(path: &Path) -> Option<Tree> {
}
Some(Tree {
root: Some(root.into_os_string().into_string().unwrap()),
root: root.into_os_string().into_string().unwrap(),
repos: Some(repos),
})
}