Skip to content

Commit 25d92df

Browse files
Remove Box wrappers from generics tests
The fact that Box<> is transparent to specta is already tested in https://github.com/specta-rs/specta/blob/8095af4205453c7b9f75ebe15ad1ad5fa02eb95a/tests/tests/ts_rs/nested.rs#L17 and in https://github.com/specta-rs/specta/blob/8095af4205453c7b9f75ebe15ad1ad5fa02eb95a/tests/tests/recursive.rs#L12 And it has nothing to do with generics.
1 parent c2a667b commit 25d92df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests/ts_rs/generics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ struct GenericAutoBound2<T: PartialEq> {
3333
#[specta(export = false)]
3434
struct Container1 {
3535
foo: Generic1<u32>,
36-
bar: Box<HashSet<Generic1<u32>>>,
37-
baz: Box<BTreeMap<String, Rc<Generic1<String>>>>,
36+
bar: HashSet<Generic1<u32>>,
37+
baz: BTreeMap<String, Rc<Generic1<String>>>,
3838
}
3939

4040
#[test]

0 commit comments

Comments
 (0)