We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 258f961 commit 37c900aCopy full SHA for 37c900a
src/shared.rs
@@ -82,12 +82,12 @@ pub enum DecodeError {
82
impl std::fmt::Display for DecodeError {
83
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
84
match self {
85
- DecodeError::InvalidChar { char, index } => {
+ Self::InvalidChar { char, index } => {
86
write!(f, "Invalid char of '{char}' at position {index}")
87
}
88
- DecodeError::InvalidLength { length } => {
+ Self::InvalidLength { length } => {
89
write!(f, "Invalid length of {length}")
90
- } // DecodeError::InvalidBits { byte, index } => {
+ } // Self::InvalidBits { byte, index } => {
91
// write!(f, "Invalid bits in {byte} at position {index}")
92
// }
93
0 commit comments