docs(identity): clarify policy creation
//!
//! To access current request identity, use the [`Identity`] extractor.
//!
-//! ```
+//! ```no_run
//! use actix_web::*;
//! use actix_identity::{Identity, CookieIdentityPolicy, IdentityService};
//!
//! HttpResponse::Ok().finish()
//! }
//!
+//! #[actix_web::main]
+//! async fn main() -> std::io::Result<()> {
+//! HttpServer::new(move || {
//! // create cookie identity backend
//! let policy = CookieIdentityPolicy::new(&[0; 32])
//! .name("auth-cookie")
//! .secure(false);
//!
-//! let app = App::new()
+//! App::new()
//! // wrap policy into middleware identity middleware
//! .wrap(IdentityService::new(policy))
-//! .service(services![index, login, logout]);
+//! .service(services![index, login, logout])
+//! })
+//! .bind(("0.0.0.0", 8080u16))?
+//! .run()
+//! .await
+//! }
//! ```
#![deny(rust_2018_idioms, nonstandard_style)]
