Skip to content

Commit

Permalink
Remove unnecessary self from use statement
Browse files Browse the repository at this point in the history
Remove the unnecessary `self::` from local use statement.
  • Loading branch information
tcharding committed Oct 25, 2023
1 parent 6046dd4 commit 869994a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub enum HexToBytesError {

impl fmt::Display for HexToBytesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
use self::HexToBytesError::*;
use HexToBytesError::*;

match *self {
InvalidChar(ch) => write!(f, "invalid hex character {}", ch),
Expand All @@ -60,7 +60,7 @@ impl fmt::Display for HexToBytesError {
#[cfg(feature = "std")]
impl std::error::Error for HexToBytesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
use self::HexToBytesError::*;
use HexToBytesError::*;

match self {
InvalidChar(_) | OddLengthString(_) => None,
Expand Down

0 comments on commit 869994a

Please sign in to comment.