1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 21:39:26 +00: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 {