network-devp2p Fix some clippy errors/warnings (#9378)
* fix some clippy warnings * Remove `shallow-copy` of Node's * Make `NonReservedPeerMode` Copy and pass-by-value
This commit is contained in:
committed by
Andronik Ordian
parent
108590d924
commit
8703449dfe
@@ -350,7 +350,7 @@ pub trait NetworkProtocolHandler: Sync + Send {
|
||||
}
|
||||
|
||||
/// Non-reserved peer modes.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||
pub enum NonReservedPeerMode {
|
||||
/// Accept them. This is the default.
|
||||
Accept,
|
||||
|
||||
Reference in New Issue
Block a user