We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e14765 commit cffa355Copy full SHA for cffa355
src/router.rs
@@ -221,13 +221,11 @@ mod tests {
221
222
// All other error types are propogated up the middleware, eventually becoming status 500
223
assert!(C(|_| Err(internal(""))).call(&mut req).is_err());
224
- assert!(C(|_| err(::serde_json::Error::syntax(
225
- ::serde_json::error::ErrorCode::ExpectedColon,
226
- 0,
227
- 0
228
- )))
229
- .call(&mut req)
230
- .is_err());
+ assert!(
+ C(|_| err::<::serde_json::Error>(::serde::de::Error::custom("ExpectedColon")))
+ .call(&mut req)
+ .is_err()
+ );
231
assert!(
232
C(|_| err(::std::io::Error::new(::std::io::ErrorKind::Other, "")))
233
.call(&mut req)
0 commit comments