Fix deprecation location
This commit is contained in:
parent
4f0a7e24d1
commit
a31acdbb93
|
|
@ -1010,11 +1010,11 @@ pub struct SslStream<S> {
|
||||||
|
|
||||||
unsafe impl<S: Send> Send for SslStream<S> {}
|
unsafe impl<S: Send> Send for SslStream<S> {}
|
||||||
|
|
||||||
impl<S: Clone + Read + Write> Clone for SslStream<S> {
|
|
||||||
/// # Deprecated
|
/// # Deprecated
|
||||||
///
|
///
|
||||||
/// This method does not behave as expected and will be removed in a future
|
/// This method does not behave as expected and will be removed in a future
|
||||||
/// release.
|
/// release.
|
||||||
|
impl<S: Clone + Read + Write> Clone for SslStream<S> {
|
||||||
fn clone(&self) -> SslStream<S> {
|
fn clone(&self) -> SslStream<S> {
|
||||||
SslStream {
|
SslStream {
|
||||||
ssl: self.ssl.clone(),
|
ssl: self.ssl.clone(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue