From c5a9767881fb99dce5f5e8b3e8bf588e9c759558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 24 Jan 2021 11:30:28 +0100 Subject: [PATCH] update deps, new version --- CHANGELOG.md | 4 ++-- Cargo.toml | 8 ++++---- src/lib.rs | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0accbe0..79d5e85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -# [unreleased] +# [0.2.2] -- ... +- Update dependencies # [0.2.1] diff --git a/Cargo.toml b/Cargo.toml index ddbb4ff..96e8146 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_session" -version = "0.2.1" +version = "0.2.2" authors = ["Ondřej Hruška "] edition = "2018" license = "MIT" @@ -16,6 +16,6 @@ categories = [ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rand = "0.7.3" -rocket = "0.4.2" -parking_lot = "0.10.0" +rand = "0.8" +rocket = "0.4" +parking_lot = "0.11" diff --git a/src/lib.rs b/src/lib.rs index dfc7d1d..44058da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -179,6 +179,7 @@ where let token: String = OsRng .sample_iter(&rand::distributions::Alphanumeric) .take(store.config.cookie_len) + .map(char::from) .collect(); if !store_wg.sessions.contains_key(&token) {