diff --git a/src/lib.rs b/src/lib.rs index 3ddb3d3..688eac6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ impl From for StreamSetupError { pub async fn stream_new_messages( spawner: &S, imap_config: IMAPConfig, -) -> Result>, StreamSetupError> { +) -> Result> + Send, StreamSetupError> { let session_generator_arc = Arc::new(ConfigSessionGenerator::new(imap_config.clone())); let watcher = email::inbox::watch_for_new_messages(spawner, session_generator_arc.clone()) .await