1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

Replace deprecated from_master with derive_from (#82)

This commit is contained in:
Yuki Okushi
2020-07-14 19:15:30 +09:00
committed by GitHub
parent 39fe80df40
commit 2a20ce4568
3 changed files with 8 additions and 8 deletions

View File

@ -67,7 +67,7 @@ impl CookieSessionInner {
fn new(key: &[u8], security: CookieSecurity) -> CookieSessionInner {
CookieSessionInner {
security,
key: Key::from_master(key),
key: Key::derive_from(key),
name: "actix-session".to_owned(),
path: "/".to_owned(),
domain: None,