From feb4f005df79fb2fa2d2e1e1cc6ba5d041125020 Mon Sep 17 00:00:00 2001 From: Wilhelm Bierbaum Date: Wed, 9 Nov 2022 12:51:01 -0800 Subject: [PATCH] Fix clippy error --- focus/util/src/git/working_tree.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/focus/util/src/git/working_tree.rs b/focus/util/src/git/working_tree.rs index fc96b3c0..549de755 100644 --- a/focus/util/src/git/working_tree.rs +++ b/focus/util/src/git/working_tree.rs @@ -47,8 +47,7 @@ impl WorkingTreeStateEntry { } fn dispositions(&self) -> Vec { - let mut dispositions = Vec::::new(); - dispositions.push(self.x); + let mut dispositions = vec![self.x]; if let Some(y) = self.y { dispositions.push(y); }