mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 21:11:07 +00:00
Remove useless trait bound and move instructions (#11193)
* Remove useless trait bound and `move` instructions * cargo fmt
This commit is contained in:
@@ -98,7 +98,7 @@ pub fn run() -> sc_cli::Result<()> {
|
||||
runner.async_run(|config| {
|
||||
let PartialComponents { client, task_manager, backend, .. } =
|
||||
service::new_partial(&config)?;
|
||||
let aux_revert = Box::new(move |client, _, blocks| {
|
||||
let aux_revert = Box::new(|client, _, blocks| {
|
||||
sc_finality_grandpa::revert(client, blocks)?;
|
||||
Ok(())
|
||||
});
|
||||
|
||||
@@ -175,7 +175,7 @@ pub fn run() -> Result<()> {
|
||||
let runner = cli.create_runner(cmd)?;
|
||||
runner.async_run(|config| {
|
||||
let PartialComponents { client, task_manager, backend, .. } = new_partial(&config)?;
|
||||
let aux_revert = Box::new(move |client: Arc<FullClient>, backend, blocks| {
|
||||
let aux_revert = Box::new(|client: Arc<FullClient>, backend, blocks| {
|
||||
sc_consensus_babe::revert(client.clone(), backend, blocks)?;
|
||||
grandpa::revert(client, blocks)?;
|
||||
Ok(())
|
||||
|
||||
@@ -1170,10 +1170,7 @@ fn local_authority_id(
|
||||
pub fn revert<Block, Client>(client: Arc<Client>, blocks: NumberFor<Block>) -> ClientResult<()>
|
||||
where
|
||||
Block: BlockT,
|
||||
Client: AuxStore
|
||||
+ HeaderMetadata<Block, Error = sp_blockchain::Error>
|
||||
+ HeaderBackend<Block>
|
||||
+ ProvideRuntimeApi<Block>,
|
||||
Client: AuxStore + HeaderMetadata<Block, Error = sp_blockchain::Error> + HeaderBackend<Block>,
|
||||
{
|
||||
let best_number = client.info().best_number;
|
||||
let finalized = client.info().finalized_number;
|
||||
|
||||
Reference in New Issue
Block a user