mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Fix build (#525)
This commit is contained in:
parent
b5411e28a5
commit
301a3a1b87
2 changed files with 6 additions and 8 deletions
|
|
@ -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 a new issue