update deps, new version

pull/5/head v0.2.2
Ondřej Hruška 3 years ago
parent 89bebc6b03
commit c5a9767881
  1. 4
      CHANGELOG.md
  2. 8
      Cargo.toml
  3. 1
      src/lib.rs

@ -1,6 +1,6 @@
# [unreleased]
# [0.2.2]
- ...
- Update dependencies
# [0.2.1]

@ -1,6 +1,6 @@
[package]
name = "rocket_session"
version = "0.2.1"
version = "0.2.2"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
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"

@ -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) {

Loading…
Cancel
Save