add some comments

pull/8675/merge^2
Matt Paras 2024-10-23 20:58:02 -07:00
parent 23470e639f
commit e6d5787566
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ pub struct Overlay<T> {
pub calc_child_size: Box<dyn Fn(Rect) -> Rect>,
}
// TODO: For this to be sound, all of the various functions
// have to now be marked as send + sync + 'static. Annoying,
// and something I'll look into with steel.
unsafe impl<T> Send for Overlay<T> {}
unsafe impl<T> Sync for Overlay<T> {}

View File

@ -39,6 +39,9 @@ pub struct Prompt {
language: Option<(&'static str, Arc<ArcSwap<syntax::Loader>>)>,
}
// TODO: For this to be sound, all of the various functions
// have to now be marked as send + sync + 'static. Annoying,
// and something I'll look into with steel.
unsafe impl Send for Prompt {}
unsafe impl Sync for Prompt {}