diff --git a/substrate/client/finality-grandpa/src/authorities.rs b/substrate/client/finality-grandpa/src/authorities.rs index ececbf1d7c701bea44fb8a1f571198dbd174a3d5..a04be72f9d31ebb5eef1741784e3e34a960c48e8 100644 --- a/substrate/client/finality-grandpa/src/authorities.rs +++ b/substrate/client/finality-grandpa/src/authorities.rs @@ -295,8 +295,7 @@ where debug!( target: "afg", - "Inserting potential standard set change signaled at block {:?} (delayed by {:?} - blocks).", + "Inserting potential standard set change signaled at block {:?} (delayed by {:?} blocks).", (&number, &hash), pending.delay, ); @@ -310,8 +309,8 @@ where debug!( target: "afg", - "There are now {} alternatives for the next pending standard change (roots), and a - total of {} pending standard changes (across all forks).", + "There are now {} alternatives for the next pending standard change (roots), and a \ + total of {} pending standard changes (across all forks).", self.pending_standard_changes.roots().count(), self.pending_standard_changes.iter().count(), ); diff --git a/substrate/client/finality-grandpa/src/import.rs b/substrate/client/finality-grandpa/src/import.rs index c287cc0b3b8962ab1cb8c475e69f0cc8a5352306..ebb26a28c34855e7c59bf1b78b78b0fdbb1939a9 100644 --- a/substrate/client/finality-grandpa/src/import.rs +++ b/substrate/client/finality-grandpa/src/import.rs @@ -372,9 +372,8 @@ where self.inner.header(BlockId::Number(canon_number)) .map_err(|e| ConsensusError::ClientImport(e.to_string()))? .expect( - "the given block number is less or equal than the current best - finalized number; current best finalized number must exist in - chain; qed." + "the given block number is less or equal than the current best finalized number; \ + current best finalized number must exist in chain; qed." ) .hash(); diff --git a/substrate/client/finality-grandpa/src/lib.rs b/substrate/client/finality-grandpa/src/lib.rs index a133319fdbef43db59888830a1177971c4422bf0..6c3f0f6af37a868a73dca55eff773fbafbe66ab1 100644 --- a/substrate/client/finality-grandpa/src/lib.rs +++ b/substrate/client/finality-grandpa/src/lib.rs @@ -778,7 +778,7 @@ where let authorities = serde_json::to_string(&authorities).expect( "authorities is always at least an empty vector; \ - elements are always of type string", + elements are always of type string", ); telemetry!( @@ -945,7 +945,7 @@ where .collect::<Vec<_>>(); let authorities = serde_json::to_string(&authorities).expect( - "authorities is always at least an empty vector; elements are always of type string", + "authorities is always at least an empty vector; elements are always of type string; qed.", ); telemetry!( @@ -1037,9 +1037,9 @@ where let voters = Arc::new(VoterSet::new(new.authorities.into_iter()) .expect( "new authorities come from pending change; \ - pending change comes from `AuthoritySet`; \ - `AuthoritySet` validates authorities is non-empty and weights are non-zero; \ - qed." + pending change comes from `AuthoritySet`; \ + `AuthoritySet` validates authorities is non-empty and weights are non-zero; \ + qed." ) );