From d603369611e9710baa06364afcb64b8148f0e30d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Apr 2023 13:57:25 +0000 Subject: [PATCH 1/2] Update redis requirement from 0.21.0 to 0.23.0 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.21.7...redis-0.23.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e3da58f..5455047 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["sessions", "tide", "async-session", "redis"] categories = ["web-programming::http-server", "web-programming", "database"] [dependencies.redis] -version = "0.21.0" +version = "0.23.0" features = ["aio", "async-std-comp"] [dependencies] From a17a421243ee6ee64e0bd1bfa227efc796f222c3 Mon Sep 17 00:00:00 2001 From: kmiura Date: Sun, 16 Apr 2023 14:00:45 +0900 Subject: [PATCH 2/2] Remove unnecessary use of to_string --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0241b08..72cc3c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -146,7 +146,7 @@ impl SessionStore for RedisSessionStore { async fn destroy_session(&self, session: Session) -> Result { let mut connection = self.connection().await?; - let key = self.prefix_key(session.id().to_string()); + let key = self.prefix_key(session.id()); connection.del(key).await?; Ok(()) }