From b505e682d423edb9f4e68acf354c2336f12c9fad Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 9 Apr 2018 09:31:11 -0700 Subject: [PATCH] fix session doc test --- src/middleware/session.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/middleware/session.rs b/src/middleware/session.rs index c1828e68..7051a034 100644 --- a/src/middleware/session.rs +++ b/src/middleware/session.rs @@ -121,9 +121,8 @@ unsafe impl Sync for SessionImplBox {} /// fn main() { /// let app = App::new().middleware( /// SessionStorage::new( // <- create session middleware -/// CookieSessionBackend::build(&[0; 32]) // <- create cookie session backend -/// .secure(false) -/// .finish()) +/// CookieSessionBackend::new(&[0; 32]) // <- create cookie session backend +/// .secure(false)) /// ); /// } /// ```