Skip to content

Commit

Permalink
deletes unused IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Jul 1, 2024
1 parent 5ab7120 commit 67147ee
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,25 +238,6 @@ impl fmt::Display for InvalidEncodingError {
#[cfg(feature = "std")]
impl std::error::Error for InvalidEncodingError {}

/// Indicates that the `Token` could not be parsed as valid RFC 6901 index.
#[derive(Debug, PartialEq, Eq)]
pub struct IndexError {
source: ParseIntError,
}

impl core::fmt::Display for IndexError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "failed to parse token as an integer")
}
}

#[cfg(feature = "std")]
impl std::error::Error for IndexError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(&self.source)
}
}

/*
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
╔══════════════════════════════════════════════════════════════════════════════╗
Expand Down

0 comments on commit 67147ee

Please sign in to comment.