Skip to content

Commit 0cf1f60

Browse files
Marc PlattMarc Platt
authored andcommitted
fix clippy errors
1 parent 6e9426b commit 0cf1f60

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

lib/net/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use crate::net::PeerConnectionError;
1212
pub struct AlreadyConnected(pub SocketAddr);
1313

1414
/// Another connection can be accepted after a non-fatal error
15+
#[allow(clippy::duplicated_attributes)]
1516
#[derive(Transitive)]
1617
#[fatality(splitable)]
1718
#[transitive(

lib/net/peer/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ pub(in crate::net::peer) mod channel_pool {
119119
Request(#[source] tokio::task::JoinError),
120120
}
121121

122+
#[allow(clippy::duplicated_attributes)]
122123
#[derive(transitive::Transitive, Debug, Error)]
123124
#[transitive(
124125
from(super::connection::SendHeartbeat, super::connection::SendMessage),
@@ -167,6 +168,7 @@ pub(in crate::net::peer) mod request_queue {
167168
#[error("Failed to add request to send queue")]
168169
pub struct SendRequest;
169170

171+
#[allow(clippy::duplicated_attributes)]
170172
#[derive(transitive::Transitive, Debug, Error)]
171173
#[transitive(
172174
from(super::channel_pool::SendMessage, super::channel_pool::Error),

lib/state/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ impl std::fmt::Display for FillTxOutputContents {
4343

4444
impl std::error::Error for FillTxOutputContents {}
4545

46+
#[allow(clippy::duplicated_attributes)]
4647
#[derive(Debug, Error, Transitive)]
4748
#[transitive(from(db::Clear, db::Error))]
4849
#[transitive(from(db::Delete, db::Error))]

0 commit comments

Comments
 (0)