mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-24 17:45:00 +03:00
very little optimization
This commit is contained in:
parent
87254045c3
commit
e155773c59
@ -38,8 +38,6 @@ pub fn get_index(show: StatusShow) -> Vec<StatusItem> {
|
||||
|
||||
let repo = git_utils::repo();
|
||||
|
||||
let mut res = Vec::new();
|
||||
|
||||
let statuses = repo
|
||||
.statuses(Some(
|
||||
StatusOptions::default()
|
||||
@ -50,6 +48,8 @@ pub fn get_index(show: StatusShow) -> Vec<StatusItem> {
|
||||
))
|
||||
.unwrap();
|
||||
|
||||
let mut res = Vec::with_capacity(statuses.len());
|
||||
|
||||
for e in statuses.iter() {
|
||||
let status: Status = e.status();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user