1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

cleanup and cargo fmt

This commit is contained in:
Nikolay Kim
2018-05-20 21:03:29 -07:00
parent 2d97219195
commit e4f1833215
28 changed files with 108 additions and 112 deletions

View File

@ -9,8 +9,9 @@ extern crate actix_web;
extern crate env_logger;
use actix::prelude::*;
use actix_web::ws::WsWriter;
use actix_web::{fs, http, middleware, server, ws, App, Error, HttpRequest, HttpResponse};
use actix_web::{
fs, http, middleware, server, ws, App, Error, HttpRequest, HttpResponse,
};
/// do websocket handshake and start `MyWebSocket` actor
fn ws_index(r: HttpRequest) -> Result<HttpResponse, Error> {