summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornickelc <constantin.nickel@gmail.com>2023-03-03 11:26:18 +0100
committerGitHub <noreply@github.com>2023-03-03 05:26:18 -0500
commit2cd66b58a7534861e3fd343ed931d39f2ddc2017 (patch)
treee0f59d19e05bf65d8f1dd7ebdc960a9e00a88723 /src
parent29c71eb6f6a0df1e89a1a7e9aa4107a77acf8673 (diff)
Update `git2` to 0.16.1 (#1323)
Diffstat (limited to 'src')
-rw-r--r--src/options/get.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/options/get.rs b/src/options/get.rs
index 3258a103..53a4d635 100644
--- a/src/options/get.rs
+++ b/src/options/get.rs
@@ -46,7 +46,9 @@ lazy_static! {
pub fn get_themes(git_config: Option<git_config::GitConfig>) -> Vec<String> {
let mut themes: Vec<String> = Vec::new();
- for e in &git_config.unwrap().config.entries(None).unwrap() {
+ let git_config = git_config.unwrap();
+ let mut entries = git_config.config.entries(None).unwrap();
+ while let Some(e) = entries.next() {
let entry = e.unwrap();
let entry_name = entry.name().unwrap();
let caps = GIT_CONFIG_THEME_REGEX.captures(entry_name);