Skip to content

Commit cce0615

Browse files
committed
Add type hint for stream::poll_fn
1 parent 5c25c8a commit cce0615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/poll_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct PollFn<F> {
3131
/// ```
3232
pub fn poll_fn<T, E, F>(f: F) -> PollFn<F>
3333
where
34-
F: FnMut() -> Poll<T, E>,
34+
F: FnMut() -> Poll<Option<T>, E>,
3535
{
3636
PollFn { inner: f }
3737
}

0 commit comments

Comments
 (0)