11use std:: io:: Write ;
22
3- use tracing:: { debug, error , info, warn } ;
3+ use tracing:: { debug, info} ;
44
55#[ derive( Default , Debug , Eq , PartialEq , Clone , Copy ) ]
66#[ repr( u8 ) ]
@@ -53,7 +53,6 @@ pub struct BesMessage {
5353
5454impl From < BesMessage > for Vec < u8 > {
5555 fn from ( mut val : BesMessage ) -> Self {
56- debug ! ( "Converting BesMessage to Vec<u8>" ) ;
5756 let mut packet: Vec < u8 > = vec ! [ ] ;
5857 packet. push ( val. sync ) ;
5958 packet. push ( val. msg_type . into ( ) ) ;
@@ -66,7 +65,6 @@ impl From<BesMessage> for Vec<u8> {
6665
6766impl From < & mut BesMessage > for Vec < u8 > {
6867 fn from ( val : & mut BesMessage ) -> Self {
69- debug ! ( "Converting &mut BesMessage to Vec<u8>" ) ;
7068 let mut packet: Vec < u8 > = vec ! [ ] ;
7169 packet. push ( val. sync ) ;
7270 packet. push ( val. msg_type . into ( ) ) ;
@@ -79,7 +77,6 @@ impl From<&mut BesMessage> for Vec<u8> {
7977
8078impl From < & BesMessage > for Vec < u8 > {
8179 fn from ( val : & BesMessage ) -> Self {
82- debug ! ( "Converting &BesMessage to Vec<u8>" ) ;
8380 let mut val = val. clone ( ) ;
8481 let mut packet: Vec < u8 > = vec ! [ ] ;
8582 packet. push ( val. sync ) ;
0 commit comments