Skip to content

Commit

Permalink
Address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GodTamIt authored and Licenser committed Apr 15, 2024
1 parent ece4c08 commit 8646633
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,19 @@ impl Error {
}

/// Returns the byte index the error occurred at.
#[must_use]
pub fn index(&self) -> usize {
self.index
}

/// Returns the current character the error occurred at.
#[must_use]
pub fn character(&self) -> Option<char> {
self.character
}

/// Returns the type of error that occurred.
#[must_use]
pub fn error(&self) -> &ErrorType {
&self.error
}
Expand Down

0 comments on commit 8646633

Please sign in to comment.