1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +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 @@ use futures::Stream;
use actix_web::http::{header, Method, StatusCode};
use actix_web::middleware::session::{self, RequestSession};
use actix_web::{error, fs, middleware, pred, server, App, Error, HttpRequest,
HttpResponse, Result};
use actix_web::{
error, fs, middleware, pred, server, App, Error, HttpRequest, HttpResponse, Result,
};
use futures::future::{result, FutureResult};
use std::{env, io};
@ -66,10 +67,7 @@ fn with_param(req: HttpRequest) -> HttpResponse {
HttpResponse::Ok()
.content_type("test/plain")
.body(format!(
"Hello {}!",
req.match_info().get("name").unwrap()
))
.body(format!("Hello {}!", req.match_info().get("name").unwrap()))
}
fn main() {