Skip to content

Commit 56199f3

Browse files
committed
Add a few Send + Sync bounds where examples require it
This is something we'll need to look into properly
1 parent 9bb99db commit 56199f3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/layout/animator.rs

+5
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ impl LayoutConstraintAnimatorProxy {
2323
}
2424
}
2525
}
26+
27+
// TODO: Safety
28+
unsafe impl Send for LayoutConstraintAnimatorProxy {}
29+
unsafe impl Sync for LayoutConstraintAnimatorProxy {}
30+

src/view/animator.rs

+4
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ impl ViewAnimatorProxy {
2222
}
2323
}
2424
}
25+
26+
// TODO: Safety
27+
unsafe impl Send for ViewAnimatorProxy {}
28+
unsafe impl Sync for ViewAnimatorProxy {}

0 commit comments

Comments
 (0)