mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-08 07:31: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,
|
mdns: Mdns,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
enum MyBehaviourEvent {
|
enum MyBehaviourEvent {
|
||||||
Kademlia(KademliaEvent),
|
Kademlia(KademliaEvent),
|
||||||
Mdns(MdnsEvent),
|
Mdns(MdnsEvent),
|
||||||
|
@ -91,6 +91,7 @@ pub struct Handler {
|
|||||||
|
|
||||||
/// Event produced by the `IdentifyHandler`.
|
/// Event produced by the `IdentifyHandler`.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
/// We obtained identification information from the remote.
|
/// We obtained identification information from the remote.
|
||||||
Identified(Info),
|
Identified(Info),
|
||||||
|
@ -2402,6 +2402,7 @@ pub struct PeerRecord {
|
|||||||
///
|
///
|
||||||
/// See [`NetworkBehaviour::poll`].
|
/// See [`NetworkBehaviour::poll`].
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum KademliaEvent {
|
pub enum KademliaEvent {
|
||||||
/// An inbound request has been received and handled.
|
/// An inbound request has been received and handled.
|
||||||
//
|
//
|
||||||
|
@ -302,6 +302,7 @@ fn with_either() {
|
|||||||
fn custom_event_with_either() {
|
fn custom_event_with_either() {
|
||||||
use either::Either;
|
use either::Either;
|
||||||
|
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
enum BehaviourOutEvent {
|
enum BehaviourOutEvent {
|
||||||
Kad(libp2p::kad::KademliaEvent),
|
Kad(libp2p::kad::KademliaEvent),
|
||||||
PingOrIdentify(Either<ping::Event, identify::Event>),
|
PingOrIdentify(Either<ping::Event, identify::Event>),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user