Skip to content

Commit

Permalink
Fix Clippy (paritytech#10596)
Browse files Browse the repository at this point in the history
* fix clippy

* fmt
  • Loading branch information
shawntabrizi authored and ark0f committed Feb 27, 2023
1 parent e9fb534 commit aa17986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<G, E> ChainSpec<G, E> {

/// Optional network fork identifier.
pub fn fork_id(&self) -> Option<&str> {
self.client_spec.fork_id.as_ref().map(String::as_str)
self.client_spec.fork_id.as_deref()
}

/// Additional loosly-typed properties of the chain.
Expand Down
4 changes: 1 addition & 3 deletions client/service/src/client/call_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ where
&runtime_code,
self.spawn_handle.clone(),
)
.with_storage_transaction_cache(
storage_transaction_cache.as_mut().map(|c| &mut **c),
)
.with_storage_transaction_cache(storage_transaction_cache.as_deref_mut())
.set_parent_hash(at_hash);
state_machine.execute_using_consensus_failure_handler(
execution_manager,
Expand Down

0 comments on commit aa17986

Please sign in to comment.