diff options
Diffstat (limited to 'src/io/split.rs')
-rw-r--r-- | src/io/split.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/io/split.rs b/src/io/split.rs index 2e0da95..f067b65 100644 --- a/src/io/split.rs +++ b/src/io/split.rs @@ -75,7 +75,10 @@ impl<T> ReadHalf<T> { /// This can be checked ahead of time by comparing the stream ID /// of the two halves. #[track_caller] - pub fn unsplit(self, wr: WriteHalf<T>) -> T { + pub fn unsplit(self, wr: WriteHalf<T>) -> T + where + T: Unpin, + { if self.is_pair_of(&wr) { drop(wr); |