diff --git a/src/sources/generic.rs b/src/sources/generic.rs index 4a76051f..9f98fead 100644 --- a/src/sources/generic.rs +++ b/src/sources/generic.rs @@ -42,7 +42,7 @@ //! [`EventSource`](crate::EventSource) implementation to them. use polling::Poller; -use std::{borrow, marker::PhantomData, ops, sync::Arc}; +use std::{borrow, marker::PhantomData, ops, panic::AssertUnwindSafe, sync::Arc}; #[cfg(unix)] use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd}; @@ -180,7 +180,7 @@ pub struct Generic { token: Option, // This allows us to make the associated error and return types generic. - _error_type: PhantomData, + _error_type: PhantomData>, } impl Generic {