@@ -16,7 +16,7 @@ use bitcoin::secp256k1;
16
16
17
17
use bitcoin:: hashes:: sha256d:: Hash as Sha256dHash ;
18
18
use bitcoin:: hashes:: Hash ;
19
- use bitcoin:: hashes:: hex:: FromHex ;
19
+ use bitcoin:: hashes:: hex:: { FromHex , ToHex } ;
20
20
use bitcoin:: hash_types:: BlockHash ;
21
21
22
22
use bitcoin:: network:: constants:: Network ;
@@ -88,12 +88,12 @@ impl NodeId {
88
88
89
89
impl fmt:: Debug for NodeId {
90
90
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
91
- write ! ( f, "NodeId({})" , log_bytes! ( self . 0 ) )
91
+ write ! ( f, "NodeId({})" , self . 0 . to_hex ( ) )
92
92
}
93
93
}
94
94
impl fmt:: Display for NodeId {
95
95
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
96
- write ! ( f, "{}" , log_bytes! ( self . 0 ) )
96
+ write ! ( f, "{}" , self . 0 . to_hex ( ) )
97
97
}
98
98
}
99
99
@@ -899,7 +899,7 @@ impl ChannelInfo {
899
899
impl fmt:: Display for ChannelInfo {
900
900
fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
901
901
write ! ( f, "features: {}, node_one: {}, one_to_two: {:?}, node_two: {}, two_to_one: {:?}" ,
902
- log_bytes!( self . features. encode( ) ) , log_bytes! ( self . node_one. as_slice ( ) ) , self . one_to_two, log_bytes! ( self . node_two. as_slice ( ) ) , self . two_to_one) ?;
902
+ log_bytes!( self . features. encode( ) ) , & self . node_one, self . one_to_two, & self . node_two, self . two_to_one) ?;
903
903
Ok ( ( ) )
904
904
}
905
905
}
@@ -1350,7 +1350,7 @@ impl<L: Deref> fmt::Display for NetworkGraph<L> where L::Target: Logger {
1350
1350
}
1351
1351
writeln ! ( f, "[Nodes]" ) ?;
1352
1352
for ( & node_id, val) in self . nodes . read ( ) . unwrap ( ) . unordered_iter ( ) {
1353
- writeln ! ( f, " {}: {}" , log_bytes! ( node_id. as_slice ( ) ) , val) ?;
1353
+ writeln ! ( f, " {}: {}" , & node_id, val) ?;
1354
1354
}
1355
1355
Ok ( ( ) )
1356
1356
}
0 commit comments