Skip to content

Commit 30d8587

Browse files
committed
refactor(clippy): fix warnings
1 parent f0dca33 commit 30d8587

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tox_core/src/dht/lan_discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use tox_packet::dht::*;
1515

1616

1717
/// Error that can happen during lan discovery.
18-
#[derive(Debug, PartialEq, Error)]
18+
#[derive(Debug, Eq, PartialEq, Error)]
1919
pub enum LanDiscoveryError {
2020
/// Ping wakeup timer error
2121
#[error("Lan discovery wakeup timer error.")]

tox_core/src/dht/server/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub enum HandlePacketError {
6363
}
6464

6565
/// Error that can happen when calling `run_*`.
66-
#[derive(Debug, PartialEq, Error)]
66+
#[derive(Debug, Eq, PartialEq, Error)]
6767
pub enum RunError {
6868
/// Send packet(s) error.
6969
#[error("Send packet(s) error")]

tox_core/src/net_crypto/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub enum SendDataError {
182182
}
183183

184184
/// Error that can happen when calling `run`.
185-
#[derive(Debug, PartialEq, Error)]
185+
#[derive(Debug, Eq, PartialEq, Error)]
186186
pub enum RunError {
187187
/// Sending pings error.
188188
#[error("Sending crypto data packet error")]

0 commit comments

Comments
 (0)