diff --git a/src/stream/stream/max_by.rs b/src/stream/stream/max_by.rs index 6cd9e56..a626b28 100644 --- a/src/stream/stream/max_by.rs +++ b/src/stream/stream/max_by.rs @@ -51,7 +51,7 @@ where } Poll::Pending } - None => Poll::Ready(*this.max), + None => Poll::Ready(this.max.take()), } } }