From 827d98d821bae184bf236053fd10b8da0f11d379 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 3 Mar 2020 12:18:37 +0100 Subject: [PATCH] Fixed for rust 1.22.0. --- examples/handshake.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/handshake.rs b/examples/handshake.rs index e04470a8..036d4223 100644 --- a/examples/handshake.rs +++ b/examples/handshake.rs @@ -2,10 +2,13 @@ extern crate bitcoin; use std::net::{IpAddr, Ipv4Addr, Shutdown, SocketAddr, TcpStream}; use std::time::{SystemTime, UNIX_EPOCH}; -use std::{env, io::Write, process}; +use std::{env, process}; +use std::io::Write; use bitcoin::consensus::encode; -use bitcoin::network::{address, constants, message, message_network, stream_reader::StreamReader}; +use bitcoin::network::{address, constants, message, message_network}; +use bitcoin::network::stream_reader::StreamReader; +use bitcoin::secp256k1; use bitcoin::secp256k1::rand::Rng; fn main() {