mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-20 05:16:35 +00:00
*: Apply clippy suggestions and enable clippy on CI (#1850)
* *: Apply clippy suggestions * .github: Add clippy check * protocols/kad/record: Implement custom PartialEq for ProviderRecord
This commit is contained in:
@ -76,7 +76,6 @@
|
||||
//! For a dialer:
|
||||
//!
|
||||
//! ```no_run
|
||||
//! # fn main() {
|
||||
//! use async_std::net::TcpStream;
|
||||
//! use multistream_select::{dialer_select_proto, Version};
|
||||
//! use futures::prelude::*;
|
||||
@ -90,7 +89,6 @@
|
||||
//! println!("Negotiated protocol: {:?}", protocol);
|
||||
//! // You can now use `_io` to communicate with the remote.
|
||||
//! });
|
||||
//! # }
|
||||
//! ```
|
||||
//!
|
||||
|
||||
@ -105,4 +103,3 @@ pub use self::negotiated::{Negotiated, NegotiatedComplete, NegotiationError};
|
||||
pub use self::protocol::{ProtocolError, Version};
|
||||
pub use self::dialer_select::{dialer_select_proto, DialerSelectFuture};
|
||||
pub use self::listener_select::{listener_select_proto, ListenerSelectFuture};
|
||||
|
||||
|
Reference in New Issue
Block a user