Skip to content

Commit 531d967

Browse files
committed
Remove the stale UndefinedField error
1 parent d6d224d commit 531d967

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/error.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pub enum Error {
1515
UnexpectedEndOfJson,
1616
FailedUtf8Parsing,
1717
WrongType(String),
18-
UndefinedField(String),
1918
}
2019

2120
impl Error {
@@ -38,7 +37,6 @@ impl fmt::Display for Error {
3837
UnexpectedEndOfJson => write!(f, "Unexpected end of JSON"),
3938
FailedUtf8Parsing => write!(f, "Failed to parse UTF-8 bytes"),
4039
WrongType(ref s) => write!(f, "Wrong type, expected: {}", s),
41-
UndefinedField(ref s) => write!(f, "Undefined field: {}", s)
4240
}
4341
}
4442
}
@@ -51,7 +49,6 @@ impl error::Error for Error {
5149
UnexpectedEndOfJson => "Unexpected end of JSON",
5250
FailedUtf8Parsing => "Failed to read bytes as UTF-8 from JSON",
5351
WrongType(_) => "Wrong type",
54-
UndefinedField(_) => "Undefined field",
5552
}
5653
}
5754
}

0 commit comments

Comments
 (0)