From c6a27525fd867bb2cf50c4276f5b666a4c2f0977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 6 Oct 2022 12:20:30 +0200 Subject: [PATCH] Remove unnecessary deref --- src/worktree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worktree.rs b/src/worktree.rs index b7845cc..f5396ff 100644 --- a/src/worktree.rs +++ b/src/worktree.rs @@ -372,7 +372,7 @@ impl<'a> Worktree<'a, WithRemoteTrackingBranch<'a>> { // TECHDEBT // We must not call this with `Some()` without a valid target. // I'm sure this can be improved, just not sure how. - &*self.extra.target_commit.unwrap(), + &self.extra.target_commit.unwrap(), )? };