mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-01 20:21:21 +00:00
*: Fix clippy warnings introduced by Rust 1.65 release (#3081)
This commit is contained in:
parent
f9b4af3d9d
commit
b528d336cd
@ -74,6 +74,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
mdns: Mdns,
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum MyBehaviourEvent {
|
||||
Kademlia(KademliaEvent),
|
||||
Mdns(MdnsEvent),
|
||||
|
@ -91,6 +91,7 @@ pub struct Handler {
|
||||
|
||||
/// Event produced by the `IdentifyHandler`.
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum Event {
|
||||
/// We obtained identification information from the remote.
|
||||
Identified(Info),
|
||||
|
@ -2402,6 +2402,7 @@ pub struct PeerRecord {
|
||||
///
|
||||
/// See [`NetworkBehaviour::poll`].
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum KademliaEvent {
|
||||
/// An inbound request has been received and handled.
|
||||
//
|
||||
|
@ -302,6 +302,7 @@ fn with_either() {
|
||||
fn custom_event_with_either() {
|
||||
use either::Either;
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum BehaviourOutEvent {
|
||||
Kad(libp2p::kad::KademliaEvent),
|
||||
PingOrIdentify(Either<ping::Event, identify::Event>),
|
||||
|
Loading…
x
Reference in New Issue
Block a user