@@ -71,11 +71,11 @@ impl<T> NonFinalizedTree<T> {
7171 /// verification is nonetheless deterministic.
7272 // TODO: expand the documentation about how blocks with authorities changes have to be finalized before any further block can be finalized
7373 pub fn verify_justification (
74- & mut self ,
74+ & ' _ mut self ,
7575 consensus_engine_id : [ u8 ; 4 ] ,
7676 scale_encoded_justification : & [ u8 ] ,
7777 randomness_seed : [ u8 ; 32 ] ,
78- ) -> Result < FinalityApply < T > , JustificationVerifyError > {
78+ ) -> Result < FinalityApply < ' _ , T > , JustificationVerifyError > {
7979 match ( & self . finality , & consensus_engine_id) {
8080 ( Finality :: Grandpa { .. } , b"FRNK" ) => {
8181 // Turn justification into a strongly-typed struct.
@@ -121,10 +121,10 @@ impl<T> NonFinalizedTree<T> {
121121 /// A randomness seed must be provided and will be used during the verification. Note that the
122122 /// verification is nonetheless deterministic.
123123 pub fn verify_grandpa_commit_message (
124- & mut self ,
124+ & ' _ mut self ,
125125 scale_encoded_commit : & [ u8 ] ,
126126 randomness_seed : [ u8 ; 32 ] ,
127- ) -> Result < FinalityApply < T > , CommitVerifyError > {
127+ ) -> Result < FinalityApply < ' _ , T > , CommitVerifyError > {
128128 // The code below would panic if the chain doesn't use Grandpa.
129129 if !matches ! ( self . finality, Finality :: Grandpa { .. } ) {
130130 return Err ( CommitVerifyError :: NotGrandpa ) ;
@@ -202,9 +202,9 @@ impl<T> NonFinalizedTree<T> {
202202 /// If necessary, the current best block will be updated to be a descendant of the
203203 /// newly-finalized block.
204204 pub fn set_finalized_block (
205- & mut self ,
205+ & ' _ mut self ,
206206 block_hash : & [ u8 ; 32 ] ,
207- ) -> Result < SetFinalizedBlockIter < T > , SetFinalizedError > {
207+ ) -> Result < SetFinalizedBlockIter < ' _ , T > , SetFinalizedError > {
208208 let block_index = match self . blocks_by_hash . get ( block_hash) {
209209 Some ( idx) => * idx,
210210 None => return Err ( SetFinalizedError :: UnknownBlock ) ,
@@ -311,9 +311,9 @@ impl<T> NonFinalizedTree<T> {
311311 /// Panics if `block_index_to_finalize` isn't a valid node in the tree.
312312 ///
313313 fn set_finalized_block_inner (
314- & mut self ,
314+ & ' _ mut self ,
315315 block_index_to_finalize : fork_tree:: NodeIndex ,
316- ) -> SetFinalizedBlockIter < T > {
316+ ) -> SetFinalizedBlockIter < ' _ , T > {
317317 let new_finalized_block = self . blocks . get_mut ( block_index_to_finalize) . unwrap ( ) ;
318318
319319 // Update `self.finality`.
0 commit comments