From 252fa319ebd408dc599e0866330619f069749aba Mon Sep 17 00:00:00 2001 From: Magamedrasul Ibragimov Date: Wed, 2 Nov 2022 14:45:10 +0300 Subject: [PATCH] refactor: change &mut self to &self --- src/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree.rs b/src/tree.rs index 069702a..f22250a 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -142,7 +142,7 @@ where } // Hashes the right couple for the key - fn hash_couple(&mut self, depth: usize, key: usize) -> H::Fr { + fn hash_couple(&self, depth: usize, key: usize) -> H::Fr { let b = key & !1; H::hash(&[ self.get_elem(Key(depth, b)),