mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-27 11:03:03 +03:00
Fix build (#525)
This commit is contained in:
parent
b5411e28a5
commit
301a3a1b87
@ -32,14 +32,12 @@ impl<'a> LogWalker<'a> {
|
||||
}
|
||||
|
||||
if let Some(ref mut walk) = self.revwalk {
|
||||
for id in walk {
|
||||
if let Ok(id) = id {
|
||||
out.push(id.into());
|
||||
count += 1;
|
||||
for id in walk.into_iter().flatten() {
|
||||
out.push(id.into());
|
||||
count += 1;
|
||||
|
||||
if count == limit {
|
||||
break;
|
||||
}
|
||||
if count == limit {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ pub fn get_remotes(repo_path: &str) -> Result<Vec<String>> {
|
||||
let repo = utils::repo(repo_path)?;
|
||||
let remotes = repo.remotes()?;
|
||||
let remotes: Vec<String> =
|
||||
remotes.iter().filter_map(|s| s).map(String::from).collect();
|
||||
remotes.iter().flatten().map(String::from).collect();
|
||||
|
||||
Ok(remotes)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user