mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Fix TcpStream::try_clone error message (#946)
This commit is contained in:
parent
e28856cffe
commit
9be5f3f9ff
@ -785,7 +785,7 @@ impl TcpStream {
|
|||||||
// Rationale for deprecation:
|
// Rationale for deprecation:
|
||||||
// - https://github.com/tokio-rs/tokio/pull/824
|
// - https://github.com/tokio-rs/tokio/pull/824
|
||||||
// - https://github.com/tokio-rs/tokio/issues/774#issuecomment-451059317
|
// - https://github.com/tokio-rs/tokio/issues/774#issuecomment-451059317
|
||||||
let msg = "`TcpStream::split()` is deprecated because it doesn't work as intended";
|
let msg = "`TcpStream::try_clone()` is deprecated because it doesn't work as intended";
|
||||||
Err(io::Error::new(io::ErrorKind::Other, msg))
|
Err(io::Error::new(io::ErrorKind::Other, msg))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user