Skip to content

Commit

Permalink
Add a few Send + Sync bounds where examples require it
Browse files Browse the repository at this point in the history
This is something we'll need to look into properly
  • Loading branch information
madsmtm committed Jul 10, 2022
1 parent 9bb99db commit 56199f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layout/animator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ impl LayoutConstraintAnimatorProxy {
}
}
}

// TODO: Safety
unsafe impl Send for LayoutConstraintAnimatorProxy {}
unsafe impl Sync for LayoutConstraintAnimatorProxy {}

4 changes: 4 additions & 0 deletions src/view/animator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ impl ViewAnimatorProxy {
}
}
}

// TODO: Safety
unsafe impl Send for ViewAnimatorProxy {}
unsafe impl Sync for ViewAnimatorProxy {}

0 comments on commit 56199f3

Please sign in to comment.