File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 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) ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments