Remove MaybeSync bound in Subscription::filter_map
This commit is contained in:
parent
24218c5106
commit
bef4992058
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ use crate::core::event;
|
|||
use crate::core::theme;
|
||||
use crate::core::window;
|
||||
use crate::futures::Stream;
|
||||
use crate::{BoxStream, MaybeSend, MaybeSync};
|
||||
use crate::{BoxStream, MaybeSend};
|
||||
|
||||
use std::any::TypeId;
|
||||
use std::hash::Hash;
|
||||
|
|
@ -368,7 +368,7 @@ impl<T> Subscription<T> {
|
|||
pub fn filter_map<F, A>(mut self, f: F) -> Subscription<A>
|
||||
where
|
||||
T: MaybeSend + 'static,
|
||||
F: Fn(T) -> Option<A> + MaybeSend + MaybeSync + Clone + 'static,
|
||||
F: Fn(T) -> Option<A> + MaybeSend + Clone + 'static,
|
||||
A: MaybeSend + 'static,
|
||||
{
|
||||
debug_assert!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue