Skip to content

Commit 1a02524

Browse files
committed
allow missing docs on variant instead of hiding, avoid redundant clone
1 parent b08c598 commit 1a02524

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ use types::*;
1818
///
1919
/// **This is available only with the `default` features, or if `proxy` and one ssl implementation are enabled**
2020
pub enum ClientType {
21-
#[doc(hidden)]
21+
#[allow(missing_docs)]
2222
TCP(RawClient<ElectrumPlaintextStream>),
23-
#[doc(hidden)]
23+
#[allow(missing_docs)]
2424
SSL(RawClient<ElectrumSslStream>),
25-
#[doc(hidden)]
25+
#[allow(missing_docs)]
2626
Socks5(RawClient<ElectrumProxyStream>),
2727
}
2828

src/raw_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ impl<S: Read + Write> RawClient<S> {
450450
s.send(ChannelMessage::Error(error.clone()))
451451
.expect("Unable to send ChannelMessage::Error");
452452
}
453-
return Err(Error::SharedIOError(error.clone()));
453+
return Err(Error::SharedIOError(error));
454454
}
455455
trace!("<== {}", raw_resp);
456456

0 commit comments

Comments
 (0)