diff --git a/cursive-core/src/event.rs b/cursive-core/src/event.rs index b2316042..ee711677 100644 --- a/cursive-core/src/event.rs +++ b/cursive-core/src/event.rs @@ -192,7 +192,7 @@ impl Callback { /// If this methods tries to call itself, nested calls will be no-ops. pub fn from_fn_mut(f: F) -> Self where - F: 'static + FnMut(&mut Cursive) + Send + Sync, + F: 'static + FnMut(&mut Cursive) + Send, { Self::from_fn(crate::immut1!(f)) } @@ -202,7 +202,7 @@ impl Callback { /// After being called once, the callback will become a no-op. pub fn from_fn_once(f: F) -> Self where - F: 'static + FnOnce(&mut Cursive) + Send + Sync, + F: 'static + FnOnce(&mut Cursive) + Send, { Self::from_fn_mut(crate::once1!(f)) } @@ -256,7 +256,7 @@ impl EventResult { /// After being called once, the callback will become a no-op. pub fn with_cb_once(f: F) -> Self where - F: 'static + FnOnce(&mut Cursive) + Send + Sync, + F: 'static + FnOnce(&mut Cursive) + Send, { EventResult::Consumed(Some(Callback::from_fn_once(f))) }