aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-28 13:21:35 +0200
committerMartin Fischer <martin@push-f.com>2022-10-28 13:24:17 +0200
commit651982662065901d7ec27f925caabaa096ee9f99 (patch)
treefb656b5b87dbe0722b03aeaa067b77d374073640
parentf47ccc6bb07e8f5f2a71f50633c0c6bac4dfde37 (diff)
fix users.toml being disregarded
Because of the ? the toml library was attempting to deserialize Option<Identities>, which apparently fails with: "invalid type: map, expected option".
-rw-r--r--src/controller.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.rs b/src/controller.rs
index 90d2d26..9127900 100644
--- a/src/controller.rs
+++ b/src/controller.rs
@@ -172,7 +172,7 @@ fn parse_identities(repo: &Repository) -> Option<Identities> {
let tree = commit.tree().ok()?;
let entry = tree.get_path(Path::new("users.toml")).ok()?;
let blob = repo.find_blob(entry.id()).ok()?;
- toml::from_slice(blob.content()).ok()?
+ toml::from_slice(blob.content()).ok()
}
impl MultiUserController {