Skip to content

Commit

Permalink
refactor: remove Required trait and util module
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Nov 27, 2023
1 parent ef17325 commit 8068479
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod net;
mod probe;
mod tracer;
mod types;
mod util;

/// Packet wire formats.
pub mod packet;
Expand Down
3 changes: 0 additions & 3 deletions src/tracing/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::tracing::packet::error::PacketError;
use crate::tracing::util::RequiredError;
use std::fmt::{Display, Formatter};
use std::io;
use std::io::ErrorKind;
Expand All @@ -20,8 +19,6 @@ pub enum TracerError {
UnknownInterface(String),
#[error("invalid config: {0}")]
BadConfig(String),
#[error("{0}")]
Required(#[from] RequiredError),
#[error("IO error: {0}")]
IoError(#[from] IoError),
#[error("insufficient buffer capacity")]
Expand Down
17 changes: 0 additions & 17 deletions src/tracing/util.rs

This file was deleted.

0 comments on commit 8068479

Please sign in to comment.