mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
Address edition-2018 idioms. (#929)
This commit is contained in:
committed by
Pierre Krieger
parent
21810e46bd
commit
eeed66707b
@@ -21,13 +21,6 @@
|
||||
//! Connection upgrade to allow retrieving the externally visible address (as dialer) or
|
||||
//! to report the externally visible address (as listener).
|
||||
|
||||
extern crate bytes;
|
||||
extern crate futures;
|
||||
extern crate libp2p_core;
|
||||
extern crate tokio_codec;
|
||||
extern crate tokio_io;
|
||||
extern crate unsigned_varint;
|
||||
|
||||
use bytes::Bytes;
|
||||
use futures::{future, prelude::*};
|
||||
use libp2p_core::{Multiaddr, upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo}};
|
||||
@@ -107,11 +100,9 @@ impl<C: AsyncWrite> Sender<C> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
extern crate tokio;
|
||||
|
||||
use libp2p_core::{Multiaddr, upgrade::{InboundUpgrade, OutboundUpgrade}};
|
||||
use self::tokio::runtime::current_thread;
|
||||
use self::tokio::net::{TcpListener, TcpStream};
|
||||
use tokio::runtime::current_thread;
|
||||
use tokio::net::{TcpListener, TcpStream};
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user