Skip to content

Commit

Permalink
chore: Remove unused imports and testing debug! invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
shymega committed May 9, 2024
1 parent fb015b7 commit 6c7ce97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/beslib/src/message.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::io::Write;

use tracing::{debug, error, info, warn};
use tracing::{debug, info};

#[derive(Default, Debug, Eq, PartialEq, Clone, Copy)]
#[repr(u8)]
Expand Down Expand Up @@ -53,7 +53,6 @@ pub struct BesMessage {

impl From<BesMessage> for Vec<u8> {
fn from(mut val: BesMessage) -> Self {
debug!("Converting BesMessage to Vec<u8>");
let mut packet: Vec<u8> = vec![];
packet.push(val.sync);
packet.push(val.msg_type.into());
Expand All @@ -66,7 +65,6 @@ impl From<BesMessage> for Vec<u8> {

impl From<&mut BesMessage> for Vec<u8> {
fn from(val: &mut BesMessage) -> Self {
debug!("Converting &mut BesMessage to Vec<u8>");
let mut packet: Vec<u8> = vec![];
packet.push(val.sync);
packet.push(val.msg_type.into());
Expand All @@ -79,7 +77,6 @@ impl From<&mut BesMessage> for Vec<u8> {

impl From<&BesMessage> for Vec<u8> {
fn from(val: &BesMessage) -> Self {
debug!("Converting &BesMessage to Vec<u8>");
let mut val = val.clone();
let mut packet: Vec<u8> = vec![];
packet.push(val.sync);
Expand Down

0 comments on commit 6c7ce97

Please sign in to comment.