Switch libp2p-core to edition 2018 (#819)

This commit is contained in:
Pierre Krieger
2019-01-07 11:21:09 +01:00
committed by GitHub
parent 7a1af7893a
commit 2eb7fe7c64
25 changed files with 65 additions and 87 deletions

View File

@ -21,6 +21,7 @@
use crate::nodes::ConnectedPoint;
use crate::upgrade::{UpgradeInfo, InboundUpgrade, OutboundUpgrade, UpgradeError, ProtocolName};
use futures::{future::Either, prelude::*};
use log::debug;
use multistream_select::{self, DialerSelectFuture, ListenerSelectFuture};
use std::mem;
use tokio_io::{AsyncRead, AsyncWrite};

View File

@ -18,8 +18,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
use futures::prelude::*;
use crate::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo};
use futures::{prelude::*, try_ready};
/// Wraps around an upgrade and applies a closure to the output.
#[derive(Debug, Clone)]