From c0172f9af59680e17b60a5f8c4ea204c2ab3b604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 19 Nov 2021 22:16:42 +0100 Subject: [PATCH] Make tree root config non-optional --- src/config.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), }) }