mirror of https://github.com/fafhrd91/actix-web
fmt
This commit is contained in:
parent
3dc9fd84f0
commit
17f523d820
|
@ -220,7 +220,10 @@ mod tests {
|
||||||
let mut s = Query::<Id>::from_query(&req.query_string()).unwrap();
|
let mut s = Query::<Id>::from_query(&req.query_string()).unwrap();
|
||||||
|
|
||||||
assert_eq!(s.id, "test");
|
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();
|
s.id = "test1".to_string();
|
||||||
let s = s.into_inner();
|
let s = s.into_inner();
|
||||||
|
@ -238,7 +241,10 @@ mod tests {
|
||||||
|
|
||||||
let mut s = Query::<Id>::from_request(&req, &mut pl).await.unwrap();
|
let mut s = Query::<Id>::from_request(&req, &mut pl).await.unwrap();
|
||||||
assert_eq!(s.id, "test");
|
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();
|
s.id = "test1".to_string();
|
||||||
let s = s.into_inner();
|
let s = s.into_inner();
|
||||||
|
|
Loading…
Reference in New Issue