mirror of https://github.com/helix-editor/helix
add some comments
parent
23470e639f
commit
e6d5787566
|
@ -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> {}
|
||||
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue