Skip to content

Commit

Permalink
clippy: removed AccountId32 and AccountKey20 cloning since they both …
Browse files Browse the repository at this point in the history
…implement Copy trait
  • Loading branch information
x3c41a committed Oct 23, 2024
1 parent ef05ebb commit 61c44d6
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions system-parachains/asset-hubs/asset-hub-kusama/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,23 +748,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,23 +772,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,23 +411,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5EueAXd4h8u75nSbFdDJbC29cmi4Uo1YJssqEL9idvindxFL",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5Dmbuiq48fU4iW58FKYqoGbbfxFHjbAeGLMtjFg6NNCw3ssr",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,23 +412,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5EueAXd4h8u75nSbFdDJbC29cmi4Uo1YJssqEL9idvindxFL",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5Dmbuiq48fU4iW58FKYqoGbbfxFHjbAeGLMtjFg6NNCw3ssr",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
8 changes: 4 additions & 4 deletions system-parachains/coretime/coretime-kusama/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
8 changes: 4 additions & 4 deletions system-parachains/coretime/coretime-polkadot/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
8 changes: 4 additions & 4 deletions system-parachains/people/people-kusama/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down
8 changes: 4 additions & 4 deletions system-parachains/people/people-polkadot/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ fn location_conversion_works() {
// DescribeAccountId32Terminal
TestCase {
description: "DescribeAccountId32Terminal Parent",
location: Location::new(1, [alice_32.clone()]),
location: Location::new(1, [alice_32]),
expected_account_id_str: "5DN5SGsuUG7PAqFL47J9meViwdnk9AdeSWKFkcHC45hEzVz4",
},
TestCase {
description: "DescribeAccountId32Terminal Sibling",
location: Location::new(1, [Parachain(1111), alice_32.clone()]),
location: Location::new(1, [Parachain(1111), alice_32]),
expected_account_id_str: "5DGRXLYwWGce7wvm14vX1Ms4Vf118FSWQbJkyQigY2pfm6bg",
},
// DescribeAccountKey20Terminal
TestCase {
description: "DescribeAccountKey20Terminal Parent",
location: Location::new(1, [bob_20.clone()]),
location: Location::new(1, [bob_20]),
expected_account_id_str: "5CJeW9bdeos6EmaEofTUiNrvyVobMBfWbdQvhTe6UciGjH2n",
},
TestCase {
description: "DescribeAccountKey20Terminal Sibling",
location: Location::new(1, [Parachain(1111), bob_20.clone()]),
location: Location::new(1, [Parachain(1111), bob_20]),
expected_account_id_str: "5CE6V5AKH8H4rg2aq5KMbvaVUDMumHKVPPQEEDMHPy3GmJQp",
},
// DescribeTreasuryVoiceTerminal
Expand Down

0 comments on commit 61c44d6

Please sign in to comment.