Skip to content
Snippets Groups Projects
Commit 2837682e authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#125): review: remove usless `enumerate()`

parent fc2fce59
No related branches found
No related tags found
No related merge requests found
......@@ -346,18 +346,14 @@ fn genesis_data_to_gdev_genesis_conf(
identity: IdentityConfig {
identities: identities
.into_iter()
.enumerate()
.map(
|(
_,
GenesisIdentity {
idty_index,
name,
owner_key,
old_owner_key,
active,
},
)| GenesisIdty {
|GenesisIdentity {
idty_index,
name,
owner_key,
old_owner_key,
active,
}| GenesisIdty {
index: idty_index,
name: common_runtime::IdtyName::from(name.as_str()),
value: common_runtime::IdtyValue {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment