Merge pull request #398 from janbaudisch/update-serde_qs

Update serde_qs to 0.9.1
This commit is contained in:
Yosh 2022-03-23 13:56:36 +01:00 committed by GitHub
commit ebe7e4de2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -49,7 +49,7 @@ cookie = { version = "0.16.0", features = ["percent-encode"], optional = true }
serde_json = { version = "1.0.51", optional = true }
serde_crate = { version = "1.0.106", features = ["derive"], optional = true, package = "serde" }
serde_urlencoded = { version = "0.7.0", optional = true}
serde_qs = { version = "0.8.3", optional = true }
serde_qs = { version = "0.9.1", optional = true }
[dev-dependencies]

View File

@ -32,10 +32,7 @@ fn unsuccessfully_deserialize_query() {
let params = req.query::<Params>();
assert!(params.is_err());
assert_eq!(
params.err().unwrap().to_string(),
"failed with reason: missing field `msg`"
);
assert_eq!(params.err().unwrap().to_string(), "missing field `msg`");
}
#[test]
@ -47,10 +44,7 @@ fn malformatted_query() {
let params = req.query::<Params>();
assert!(params.is_err());
assert_eq!(
params.err().unwrap().to_string(),
"failed with reason: missing field `msg`"
);
assert_eq!(params.err().unwrap().to_string(), "missing field `msg`");
}
#[test]