mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 15:41:31 +03:00
Merge pull request #3106 from gitbutlerapp/remove-needless-vec-copy
remove needless vec copy
This commit is contained in:
commit
467c33ee64
@ -1265,9 +1265,7 @@ pub fn create_virtual_branch(
|
||||
let mut all_virtual_branches = Iterator::new(¤t_session_reader)
|
||||
.context("failed to create branch iterator")?
|
||||
.collect::<Result<Vec<branch::Branch>, reader::Error>>()
|
||||
.context("failed to read virtual branches")?
|
||||
.into_iter()
|
||||
.collect::<Vec<branch::Branch>>();
|
||||
.context("failed to read virtual branches")?;
|
||||
all_virtual_branches.sort_by_key(|branch| branch.order);
|
||||
|
||||
let order = create
|
||||
|
Loading…
Reference in New Issue
Block a user