Make tree root config non-optional
This commit is contained in:
@@ -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>>,
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user