Take `genesis_storage` by ref (#4617)
Instead of having these weird implementation of `BuildStorage for &ChainSpec` we should just take the `genesis_storage` by ref. The `BuildStorage` trait changed some time ago to take a self ref anyway, instead of a self value. Also fixes warnings in frame-staking
Showing
- substrate/client/chain-spec/src/chain_spec.rs 1 addition, 1 deletionsubstrate/client/chain-spec/src/chain_spec.rs
- substrate/client/db/src/lib.rs 1 addition, 1 deletionsubstrate/client/db/src/lib.rs
- substrate/client/src/client.rs 3 additions, 3 deletionssubstrate/client/src/client.rs
- substrate/client/src/lib.rs 1 addition, 1 deletionsubstrate/client/src/lib.rs
- substrate/client/src/light/mod.rs 1 addition, 1 deletionsubstrate/client/src/light/mod.rs
- substrate/frame/staking/src/lib.rs 2 additions, 4 deletionssubstrate/frame/staking/src/lib.rs
- substrate/test-utils/client/src/lib.rs 1 addition, 1 deletionsubstrate/test-utils/client/src/lib.rs
Please register or sign in to comment