Skip to content

Commit 62b6cb2

Browse files
authored
Merge pull request #734 from swimos/many-fields-fix
Fixed limitation of number of fields for derived Forms.
2 parents 2a82082 + bed22a6 commit 62b6cb2

File tree

2 files changed

+154
-90
lines changed

2 files changed

+154
-90
lines changed

api/swimos_form/tests/structure.rs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,38 @@ fn generic_duplicated_bound_2() {
595595
let _ = s.as_value();
596596
}
597597

598+
#[test]
599+
fn many_fields() {
600+
#[derive(Form, Default)]
601+
602+
struct Many {
603+
field1: u64,
604+
field2: u64,
605+
field3: u64,
606+
field4: u64,
607+
field5: u64,
608+
field6: u64,
609+
field7: u64,
610+
field8: u64,
611+
field9: u64,
612+
field10: u64,
613+
field11: u64,
614+
field12: u64,
615+
field13: u64,
616+
field14: u64,
617+
field15: u64,
618+
field16: u64,
619+
field17: u64,
620+
field18: u64,
621+
field19: u64,
622+
field20: u64,
623+
}
624+
625+
let s = Many::default();
626+
627+
let _ = s.as_value();
628+
}
629+
598630
#[test]
599631
fn test_newtype() {
600632
{

0 commit comments

Comments
 (0)