File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ mod tests {
100100 } ) ;
101101 let bgp_bytes = bgp_update. encode ( AsnLength :: Bits16 ) ;
102102
103- let mut data = Bytes :: from ( bgp_bytes) ;
103+ let mut data = bgp_bytes;
104104 let asn_len = AsnLength :: Bits16 ; // RFC 9069 violation
105105 let peer_type = crate :: parser:: bmp:: messages:: BmpPeerType :: LocalRib ;
106106
@@ -123,7 +123,7 @@ mod tests {
123123 } ) ;
124124 let bgp_bytes = bgp_update. encode ( AsnLength :: Bits32 ) ;
125125
126- let mut data = Bytes :: from ( bgp_bytes) ;
126+ let mut data = bgp_bytes;
127127 let asn_len = AsnLength :: Bits32 ; // RFC 9069 compliant
128128 let peer_type = crate :: parser:: bmp:: messages:: BmpPeerType :: LocalRib ;
129129
@@ -146,7 +146,7 @@ mod tests {
146146 } ) ;
147147 let bgp_bytes = bgp_update. encode ( AsnLength :: Bits16 ) ;
148148
149- let mut data = Bytes :: from ( bgp_bytes) ;
149+ let mut data = bgp_bytes;
150150 let asn_len = AsnLength :: Bits16 ;
151151 let peer_type = crate :: parser:: bmp:: messages:: BmpPeerType :: Global ; // Not LocalRib
152152
You can’t perform that action at this time.
0 commit comments