1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-03-15 01:46:26 +01:00

Run rustfmt

This commit is contained in:
Yuki Okushi 2020-03-27 20:19:22 +09:00
parent 585709929b
commit 2bfc9be5ad
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1

View File

@ -557,10 +557,7 @@ mod test {
.into_iter() .into_iter()
.find(|c| c.name() == "test-session") .find(|c| c.name() == "test-session")
.unwrap(); .unwrap();
assert_eq!( assert_ne!(cookie_1.value(), cookie_2.value());
true,
cookie_1.value() != cookie_2.value()
);
let result_5 = resp_5.json::<IndexResponse>().await.unwrap(); let result_5 = resp_5.json::<IndexResponse>().await.unwrap();
assert_eq!( assert_eq!(
@ -618,7 +615,7 @@ mod test {
counter: 0 counter: 0
} }
); );
assert!(cookie_3.value() != cookie_2.value()); assert_ne!(cookie_3.value(), cookie_2.value());
// Step 9: POST to logout, including session cookie #2 // Step 9: POST to logout, including session cookie #2
// - set-cookie actix-session will be in response with session cookie #2 // - set-cookie actix-session will be in response with session cookie #2
@ -632,7 +629,10 @@ mod test {
.into_iter() .into_iter()
.find(|c| c.name() == "test-session") .find(|c| c.name() == "test-session")
.unwrap(); .unwrap();
assert_ne!(OffsetDateTime::now().year(), cookie_4.expires().map(|t| t.year()).unwrap()); assert_ne!(
OffsetDateTime::now().year(),
cookie_4.expires().map(|t| t.year()).unwrap()
);
// Step 10: GET index, including session cookie #2 in request // Step 10: GET index, including session cookie #2 in request
// - set-cookie actix-session will be in response (session cookie #3) // - set-cookie actix-session will be in response (session cookie #3)
@ -655,6 +655,6 @@ mod test {
.into_iter() .into_iter()
.find(|c| c.name() == "test-session") .find(|c| c.name() == "test-session")
.unwrap(); .unwrap();
assert!(cookie_5.value() != cookie_2.value()); assert_ne!(cookie_5.value(), cookie_2.value());
} }
} }