From 06ce468ee0c01ceeccdaa947142436299510b2af Mon Sep 17 00:00:00 2001 From: dowwie Date: Mon, 8 Jul 2019 14:49:34 -0400 Subject: [PATCH 1/2] updated deps --- Cargo.toml | 33 +++++++++++++++++---------------- src/session.rs | 3 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b1c82a7d4..c9bde7a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,26 +28,27 @@ default = ["web"] web = ["actix/http", "actix-service", "actix-utils", "actix-web", "actix-session/cookie-session", "rand", "serde", "serde_json"] [dependencies] -actix = "0.8.2" +actix = "0.8.3" log = "0.4" -backoff = "0.1" -derive_more = "0.14" -futures = "0.1.25" -tokio-io = "0.1" -tokio-codec = "0.1" -tokio-tcp = "0.1" -redis-async = "0.4" -time = "0.1" +backoff = "0.1.5" +derive_more = "0.15.0" +futures = "0.1.28" +tokio-io = "0.1.12" +tokio-codec = "0.1.1" +tokio-tcp = "0.1.3" +redis-async = "0.4.5" +time = "0.1.42" # actix web session -actix-web = { version = "1.0.0-rc", optional=true } -actix-utils = { version = "0.4.1", optional=true } -actix-service = { version = "0.4.0", optional=true } -actix-session = { version = "0.1.0", optional=true } -rand = { version="0.6.5", optional=true } -serde = { version="1.0", optional=true } -serde_json = { version="1.0", optional=true } +actix-web = { version = "1.0.3", optional = true } +actix-utils = { version = "0.4.2", optional = true } +actix-service = { version = "0.4.1", optional = true } +actix-session = { version = "0.2.0", optional = true } +rand = { version = "0.7.0", optional = true } +serde = { version = "1.0.94", optional = true } +serde_json = { version = "1.0.40", optional = true } +env_logger = "0.6.2" [dev-dependencies] env_logger = "0.6" diff --git a/src/session.rs b/src/session.rs index 315dc189e..9623c6c16 100644 --- a/src/session.rs +++ b/src/session.rs @@ -275,9 +275,8 @@ impl Inner { let (value, jar) = if let Some(value) = value { (value.clone(), None) } else { - let mut rng = OsRng::new().unwrap(); let value: String = iter::repeat(()) - .map(|()| rng.sample(Alphanumeric)) + .map(|()| OsRng.sample(Alphanumeric)) .take(32) .collect(); From b29f8cc0f08db700f86fc847485718c4a29409fb Mon Sep 17 00:00:00 2001 From: dowwie Date: Mon, 8 Jul 2019 14:51:54 -0400 Subject: [PATCH 2/2] updated log dep --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c9bde7a72..08501b837 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ web = ["actix/http", "actix-service", "actix-utils", "actix-web", "actix-session [dependencies] actix = "0.8.3" -log = "0.4" +log = "0.4.6" backoff = "0.1.5" derive_more = "0.15.0" futures = "0.1.28"