diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-28 13:21:35 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-28 13:24:17 +0200 |
commit | 651982662065901d7ec27f925caabaa096ee9f99 (patch) | |
tree | fb656b5b87dbe0722b03aeaa067b77d374073640 | |
parent | f47ccc6bb07e8f5f2a71f50633c0c6bac4dfde37 (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.rs | 2 |
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 { |