Skip to content

Commit

Permalink
Update git2 to 0.16.1 (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored Mar 3, 2023
1 parent 29c71eb commit 2cd66b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ vte = "0.10.1"
xdg = "2.4.1"

[dependencies.git2]
version = "0.14.0"
version = "0.16.1"
default-features = false
features = []

Expand Down
4 changes: 3 additions & 1 deletion src/options/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2cd66b5

Please sign in to comment.