From 2bfc9be5ad478b5e2f50402d3450c3ff258d2f78 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 27 Mar 2020 20:19:22 +0900 Subject: [PATCH 1/2] Run rustfmt --- actix-redis/src/session.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/actix-redis/src/session.rs b/actix-redis/src/session.rs index a87f942fd..159d6d71b 100644 --- a/actix-redis/src/session.rs +++ b/actix-redis/src/session.rs @@ -557,10 +557,7 @@ mod test { .into_iter() .find(|c| c.name() == "test-session") .unwrap(); - assert_eq!( - true, - cookie_1.value() != cookie_2.value() - ); + assert_ne!(cookie_1.value(), cookie_2.value()); let result_5 = resp_5.json::().await.unwrap(); assert_eq!( @@ -618,7 +615,7 @@ mod test { 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 // - set-cookie actix-session will be in response with session cookie #2 @@ -632,7 +629,10 @@ mod test { .into_iter() .find(|c| c.name() == "test-session") .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 // - set-cookie actix-session will be in response (session cookie #3) @@ -655,6 +655,6 @@ mod test { .into_iter() .find(|c| c.name() == "test-session") .unwrap(); - assert!(cookie_5.value() != cookie_2.value()); + assert_ne!(cookie_5.value(), cookie_2.value()); } } From 21024be9d689e6a6cb94d205099947c8315d9544 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 27 Mar 2020 20:19:53 +0900 Subject: [PATCH 2/2] Bump up to 0.9.0-alpha.1 --- actix-redis/CHANGES.md | 2 +- actix-redis/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-redis/CHANGES.md b/actix-redis/CHANGES.md index a2d7d0c1d..99f0df6b2 100644 --- a/actix-redis/CHANGES.md +++ b/actix-redis/CHANGES.md @@ -1,6 +1,6 @@ # Changes -## [Unreleased] +## [0.9.0-alpha.1] * Update `actix` to 0.10.0-alpha.2 diff --git a/actix-redis/Cargo.toml b/actix-redis/Cargo.toml index da5ebdeed..ffcbfb182 100644 --- a/actix-redis/Cargo.toml +++ b/actix-redis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-redis" -version = "0.8.1" +version = "0.9.0-alpha.1" authors = ["Nikolay Kim "] description = "Redis integration for actix framework" license = "MIT/Apache-2.0"