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