fix: mainnet replicate #374
Annotations
4 errors
this expression creates a reference which is immediately dereferenced by the compiler:
xtask/src/run.rs#L63
error: this expression creates a reference which is immediately dereferenced by the compiler
--> xtask/src/run.rs:63:48
|
63 | (crate::mainnet_spec::mainnet_spec(&replica, &path), false)
| ^^^^^^^^ help: change this to: `replica`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
xtask/src/mainnet_spec.rs#L56
error: the borrowed expression implements the required traits
--> xtask/src/mainnet_spec.rs:56:63
|
56 | genesis[&key] = Value::String(format!("0x{}", hex::encode(&sudo)));
| ^^^^^ help: change this to: `sudo`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
xtask/src/mainnet_spec.rs#L50
error: this expression creates a reference which is immediately dereferenced by the compiler
--> xtask/src/mainnet_spec.rs:50:54
|
50 | sp_core::ed25519::Public::from_ss58check(&sudo)
| ^^^^^ help: change this to: `sudo`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
|
constant `IS_NEW_LOGIC` is never used:
xtask/src/mainnet_spec.rs#L144
error: constant `IS_NEW_LOGIC` is never used
--> xtask/src/mainnet_spec.rs:144:7
|
144 | const IS_NEW_LOGIC: u128 = 0x80000000_00000000_00000000_00000000u128;
| ^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|