Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
bierbaum committed Nov 10, 2022
1 parent 6871730 commit feb4f00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions focus/util/src/git/working_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ impl WorkingTreeStateEntry {
}

fn dispositions(&self) -> Vec<Disposition> {
let mut dispositions = Vec::<Disposition>::new();
dispositions.push(self.x);
let mut dispositions = vec![self.x];
if let Some(y) = self.y {
dispositions.push(y);
}
Expand Down

0 comments on commit feb4f00

Please sign in to comment.