Skip to content

Commit

Permalink
frame/tests: Place [] around items
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Dec 4, 2024
1 parent cc6a03f commit 364dde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/support/test/tests/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ fn metadata() {
error_enum_ty: meta_type::<RuntimeError>(),
};

let custom_value: BTreeMap<u8, Vec<u32>> = (0, vec![0]).into_iter().collect();
let custom_value: BTreeMap<u8, Vec<u32>> = [(0, vec![0])].into_iter().collect();
let expected_metadata: RuntimeMetadataPrefixed = RuntimeMetadataLastVersion::new(
pallets,
extrinsic,
Expand Down

0 comments on commit 364dde6

Please sign in to comment.