mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
very little optimization
This commit is contained in:
parent
87254045c3
commit
e155773c59
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue