From 74c9ecbfd6f3dced2fb2ac0a16d10c495f00d4a9 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 5 Aug 2016 14:09:21 +0200 Subject: [PATCH] fixed compiling --- util/network/src/node_table.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/network/src/node_table.rs b/util/network/src/node_table.rs index 31045171e..26f6d9f8c 100644 --- a/util/network/src/node_table.rs +++ b/util/network/src/node_table.rs @@ -27,6 +27,7 @@ use std::fs; use std::io::{Read, Write}; use util::hash::*; use util::rlp::*; +use util::UtilError; use time::Tm; use error::NetworkError; use discovery::{TableUpdates, NodeEntry}; @@ -164,7 +165,7 @@ impl FromStr for Node { type Err = NetworkError; fn from_str(s: &str) -> Result { let (id, endpoint) = if s.len() > 136 && &s[0..8] == "enode://" && &s[136..137] == "@" { - (try!(NodeId::from_str(&s[8..136])), try!(NodeEndpoint::from_str(&s[137..]))) + (try!(s[8..136].parse().map_err(UtilError::from)), try!(NodeEndpoint::from_str(&s[137..]))) } else { (NodeId::new(), try!(NodeEndpoint::from_str(s)))