From 8dc6f9f589839791804ebaba89a7186c7feab174 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 18 Jan 2022 09:36:29 -0800 Subject: [PATCH] Remove unused mut --- core/src/consensus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/consensus.rs b/core/src/consensus.rs index 96929b899e..8c2965faf7 100644 --- a/core/src/consensus.rs +++ b/core/src/consensus.rs @@ -451,7 +451,7 @@ impl Tower { self.stray_restored_slot } - pub fn last_vote(&mut self) -> Vote { + pub fn last_vote(&self) -> Vote { self.last_vote.clone() }