Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Sep 8, 2023
1 parent 43386fb commit 55653b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/parachain/node/src/chain_spec/picasso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn genesis_config(
let contracts =
[option_env!("CW_XC_GATEWAY_WASM_PATH"), option_env!("CW_XC_INTERPRETER_WASM_PATH")]
.into_iter()
.filter_map(core::convert::identity)
.flatten()
.map(|path| match std::fs::read(path).map(|bytes| bytes.try_into()) {
Ok(Ok(data)) => data,
Ok(Err(_err)) => panic!("{path}: wasm file is over size limit"),
Expand Down
4 changes: 1 addition & 3 deletions code/parachain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ pub fn run() -> Result<()> {
None => {
let runner = cli.create_runner(&cli.run.normalize())?;
let collator_options = cli.run.collator_options();
let chain_spec = &runner.config().chain_spec;
let is_dev = chain_spec.is_dev();


runner.run_node_until_exit(|config| async move {
let para_id = chain_spec::Extensions::try_get(&*config.chain_spec)
.map(|e| e.para_id)
Expand Down

0 comments on commit 55653b2

Please sign in to comment.