Skip to content

Commit 7ba0fa7

Browse files
committed
fix formatting
1 parent 857c3d7 commit 7ba0fa7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/executors/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ where
3030
let function_args: PyObject = function_args
3131
.clone()
3232
.into_pyobject(py)
33-
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!("Failed to convert args: {:?}", e)))?
33+
.map_err(|e| {
34+
PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!(
35+
"Failed to convert args: {:?}",
36+
e
37+
))
38+
})?
3439
.into_any()
3540
.unbind();
3641
debug!("Function args: {:?}", function_args);

src/types/response.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ impl Responder for Response {
2727
type Body = BoxBody;
2828

2929
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body> {
30-
let mut response_builder =
31-
HttpResponseBuilder::new(StatusCode::from_u16(self.status_code).unwrap_or(StatusCode::INTERNAL_SERVER_ERROR));
30+
let mut response_builder = HttpResponseBuilder::new(
31+
StatusCode::from_u16(self.status_code).unwrap_or(StatusCode::INTERNAL_SERVER_ERROR),
32+
);
3233
apply_hashmap_headers(&mut response_builder, &self.headers);
3334
response_builder.body(self.description)
3435
}

0 commit comments

Comments
 (0)