This commit is contained in:
ibraheemdev 2021-04-08 21:58:51 -04:00
parent 3dc9fd84f0
commit 17f523d820
1 changed files with 8 additions and 2 deletions

View File

@ -220,7 +220,10 @@ mod tests {
let mut s = Query::<Id>::from_query(&req.query_string()).unwrap();
assert_eq!(s.id, "test");
assert_eq!(format!("{}, {:?}", s, s), "test, Query(Id { id: \"test\" })");
assert_eq!(
format!("{}, {:?}", s, s),
"test, Query(Id { id: \"test\" })"
);
s.id = "test1".to_string();
let s = s.into_inner();
@ -238,7 +241,10 @@ mod tests {
let mut s = Query::<Id>::from_request(&req, &mut pl).await.unwrap();
assert_eq!(s.id, "test");
assert_eq!(format!("{}, {:?}", s, s), "test, Query(Id { id: \"test\" })");
assert_eq!(
format!("{}, {:?}", s, s),
"test, Query(Id { id: \"test\" })"
);
s.id = "test1".to_string();
let s = s.into_inner();