From 52aebb3bca4c6d38ce02a0c8ac60a5b29b58e1ef Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 10 Apr 2019 15:05:03 -0700 Subject: [PATCH] fmt --- Cargo.toml | 1 + src/data.rs | 7 +++++-- src/types/json.rs | 7 +++++-- src/types/query.rs | 7 +++++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0c4d31374..609b2ff3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,7 @@ members = [ "awc", "actix-http", "actix-files", + "actix-framed", "actix-session", "actix-multipart", "actix-web-actors", diff --git a/src/data.rs b/src/data.rs index edaf32c8e..c697bac5e 100644 --- a/src/data.rs +++ b/src/data.rs @@ -96,8 +96,11 @@ impl FromRequest

for Data { if let Some(st) = req.app_config().extensions().get::>() { Ok(st.clone()) } else { - log::debug!("Failed to construct App-level Data extractor. \ - Request path: {:?}", req.path()); + log::debug!( + "Failed to construct App-level Data extractor. \ + Request path: {:?}", + req.path() + ); Err(ErrorInternalServerError( "App data is not configured, to configure use App::data()", )) diff --git a/src/types/json.rs b/src/types/json.rs index 99fd5b417..5044cf70c 100644 --- a/src/types/json.rs +++ b/src/types/json.rs @@ -185,8 +185,11 @@ where JsonBody::new(req, payload) .limit(limit) .map_err(move |e| { - log::debug!("Failed to deserialize Json from payload. \ - Request path: {:?}", path); + log::debug!( + "Failed to deserialize Json from payload. \ + Request path: {:?}", + path + ); if let Some(err) = err { (*err)(e, &req2) } else { diff --git a/src/types/query.rs b/src/types/query.rs index 363d56199..0d37c45f3 100644 --- a/src/types/query.rs +++ b/src/types/query.rs @@ -123,8 +123,11 @@ where serde_urlencoded::from_str::(req.query_string()) .map(|val| Ok(Query(val))) .unwrap_or_else(|e| { - log::debug!("Failed during Query extractor deserialization. \ - Request path: {:?}", req.path()); + log::debug!( + "Failed during Query extractor deserialization. \ + Request path: {:?}", + req.path() + ); Err(e.into()) }) }