Skip to content

Commit d6921ee

Browse files
Update tests.rs
paritytech/parity-scale-codec/pull/653 disallowed duplicate indexes for variants.
1 parent db9810d commit d6921ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn basic_enum_with_index() {
294294
#[allow(unused)]
295295
#[derive(Encode)]
296296
enum IndexedRustEnum {
297-
#[codec(index = 3)]
297+
#[codec(index = 4)]
298298
A(bool),
299299
#[codec(index = 0)]
300300
B {
@@ -312,7 +312,7 @@ fn basic_enum_with_index() {
312312
.variant(
313313
Variants::new()
314314
.variant("A", |v| {
315-
v.index(3).fields(
315+
v.index(4).fields(
316316
Fields::unnamed().field(|f| f.ty::<bool>().type_name("bool")),
317317
)
318318
})
@@ -338,7 +338,7 @@ fn basic_enum_with_index() {
338338
.variant(
339339
Variants::new()
340340
.variant("A", |v| {
341-
v.index(3)
341+
v.index(4)
342342
.fields(Fields::unnamed().field(|f| f.ty::<bool>().type_name("bool")))
343343
})
344344
.variant("B", |v| {

0 commit comments

Comments
 (0)