mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-21 05:05:44 +02:00
fix session doc test
This commit is contained in:
@@ -121,9 +121,8 @@ unsafe impl Sync for SessionImplBox {}
|
|||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let app = App::new().middleware(
|
/// let app = App::new().middleware(
|
||||||
/// SessionStorage::new( // <- create session middleware
|
/// SessionStorage::new( // <- create session middleware
|
||||||
/// CookieSessionBackend::build(&[0; 32]) // <- create cookie session backend
|
/// CookieSessionBackend::new(&[0; 32]) // <- create cookie session backend
|
||||||
/// .secure(false)
|
/// .secure(false))
|
||||||
/// .finish())
|
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
Reference in New Issue
Block a user