File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -929,7 +929,7 @@ impl_writeable_tlv_based!(NodeAnnouncementInfo, {
929
929
///
930
930
/// [security considerations]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#security-considerations-for-node-aliases
931
931
#[ derive( Clone , Debug , PartialEq ) ]
932
- pub struct NodeAlias ( [ u8 ; 32 ] ) ;
932
+ pub struct NodeAlias ( pub [ u8 ; 32 ] ) ;
933
933
934
934
impl fmt:: Display for NodeAlias {
935
935
fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
@@ -944,7 +944,7 @@ impl fmt::Display for NodeAlias {
944
944
} ,
945
945
Err ( _) => {
946
946
bytes. iter ( ) . map ( |b| * b as char )
947
- . map ( |c| if c. is_ascii_graphic ( ) || c == ' ' { c } else { control_symbol } )
947
+ . map ( |c| if c >= '\x20' && c <= '\x7e ' { c } else { control_symbol } )
948
948
. collect :: < String > ( )
949
949
} ,
950
950
} ;
You can’t perform that action at this time.
0 commit comments