Skip to content

Commit

Permalink
Implement clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbmb committed Nov 4, 2024
1 parent 5d5a710 commit 90ba7d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ fn relay_commands_kill_identity() {
let people_kusama_alice =
<PeopleKusama as Chain>::RuntimeOrigin::signed(PeopleKusama::account_id_of(ALICE));

let mut identity_info = <IdentityInfo as Default>::default();
identity_info.email = Data::Raw(b"test@test.io".to_vec().try_into().unwrap());
let identity_info = IdentityInfo {
email: Data::Raw(b"test@test.io".to_vec().try_into().unwrap()),
..Default::default()
};
let identity: Box<<PeopleRuntime as pallet_identity::Config>::IdentityInformation> =
Box::new(identity_info);

Expand Down Expand Up @@ -226,7 +228,7 @@ fn relay_commands_add_remove_username_authority() {
assert_ok!(<PeopleKusama as PeopleKusamaPallet>::Identity::set_username_for(
<PeopleKusama as Chain>::RuntimeOrigin::signed(people_kusama_alice.clone()),
people_kusama_runtime::MultiAddress::Id(people_kusama_bob.clone()),
usr.to_owned().into_bytes().try_into().unwrap(),
usr.to_owned().into_bytes(),
None,
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ fn relay_commands_kill_identity() {
let people_polkadot_alice =
<PeoplePolkadot as Chain>::RuntimeOrigin::signed(PeoplePolkadot::account_id_of(ALICE));

let mut identity_info = <IdentityInfo as Default>::default();
identity_info.email = Data::Raw(b"test@test.io".to_vec().try_into().unwrap());
let identity_info = IdentityInfo {
email: Data::Raw(b"test@test.io".to_vec().try_into().unwrap()),
..Default::default()
};
let identity: Box<<PeopleRuntime as pallet_identity::Config>::IdentityInformation> =
Box::new(identity_info);

Expand Down Expand Up @@ -228,7 +230,7 @@ fn relay_commands_add_remove_username_authority() {
assert_ok!(<PeoplePolkadot as PeoplePolkadotPallet>::Identity::set_username_for(
<PeoplePolkadot as Chain>::RuntimeOrigin::signed(people_polkadot_alice.clone()),
people_polkadot_runtime::MultiAddress::Id(people_polkadot_bob.clone()),
usr.to_owned().into_bytes().try_into().unwrap(),
usr.to_owned().into_bytes(),
None,
));

Expand Down

0 comments on commit 90ba7d8

Please sign in to comment.