Skip to content

Commit 3db0056

Browse files
authored
Fill out missing StreamRead::cancel implementation (#1376)
Just a typo from when this was originally scaffolded.
1 parent ca55f12 commit 3db0056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/guest-rust/src/rt/async_support/stream_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,6 @@ impl<'a, T> StreamRead<'a, T> {
599599
/// Panics if the operation has already been completed via `Future::poll`,
600600
/// or if this method is called twice.
601601
pub fn cancel(self: Pin<&mut Self>) -> (StreamResult, Vec<T>) {
602-
todo!()
602+
self.pin_project().cancel()
603603
}
604604
}

0 commit comments

Comments
 (0)