diff --git a/src/config.rs b/src/config.rs index e6fdc76..69d8442 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,7 +11,7 @@ pub struct Config { #[derive(Debug, Serialize, Deserialize)] #[serde(deny_unknown_fields)] pub struct Tree { - pub root: Option, + pub root: String, pub repos: Option>, } diff --git a/src/lib.rs b/src/lib.rs index e1dcb35..db4b522 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -353,7 +353,7 @@ fn find_in_tree(path: &Path) -> Option { } Some(Tree { - root: Some(root.into_os_string().into_string().unwrap()), + root: root.into_os_string().into_string().unwrap(), repos: Some(repos), }) }