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
/// an application instance. Http server constructs an application
/// instance for each thread, thus application state must be constructed multiple
/// times. If you want to share state between different threads, a
/// shared object should be used, e.g. `Arc`. Application state does not
/// need to be `Send` and `Sync`.
/// instance for each thread, thus application state must be constructed
/// multiple times. If you want to share state between different
/// threads, a shared object should be used, e.g. `Arc`. Application
/// state does not need to be `Send` and `Sync`.
pub fn with_state(state: S) -> App<S> {
App {
parts: Some(ApplicationParts {