1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01:00

formatting

This commit is contained in:
Nikolay Kim 2018-04-18 10:49:03 -07:00
parent a9a54ac4c6
commit 022f9800ed

View File

@ -180,10 +180,10 @@ where
/// ///
/// **Note**: http server accepts an application factory rather than /// **Note**: http server accepts an application factory rather than
/// an application instance. Http server constructs an application /// an application instance. Http server constructs an application
/// instance for each thread, thus application state must be constructed multiple /// instance for each thread, thus application state must be constructed
/// times. If you want to share state between different threads, a /// multiple times. If you want to share state between different
/// shared object should be used, e.g. `Arc`. Application state does not /// threads, a shared object should be used, e.g. `Arc`. Application
/// need to be `Send` and `Sync`. /// state does not need to be `Send` and `Sync`.
pub fn with_state(state: S) -> App<S> { pub fn with_state(state: S) -> App<S> {
App { App {
parts: Some(ApplicationParts { parts: Some(ApplicationParts {