File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ fn main() {
53
53
. map ( |x| x / 2 )
54
54
. fold ( 0 , |acc, x| acc + x) ;
55
55
56
+ body. fold ( Body :: new ( ) , |mut body, chunk| {
57
+ body. extend ( chunk) ;
58
+ Ok ( body)
59
+ } ) . and_then ( move |body| {
60
+ let req = Request :: from_parts ( parts, body) ;
61
+ f ( req) . map_err ( |_| io:: Error :: new ( io:: ErrorKind :: Other , "" ) )
62
+ } ) ;
63
+
56
64
aaaaaaaaaaaaaaaa. map ( |x| {
57
65
x += 1 ;
58
66
x
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ fn main() {
54
54
let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum =
55
55
xxxxxxx. map ( |x| x + 5 ) . map ( |x| x / 2 ) . fold ( 0 , |acc, x| acc + x) ;
56
56
57
+ body. fold ( Body :: new ( ) , |mut body, chunk| {
58
+ body. extend ( chunk) ;
59
+ Ok ( body)
60
+ } ) . and_then ( move |body| {
61
+ let req = Request :: from_parts ( parts, body) ;
62
+ f ( req) . map_err ( |_| io:: Error :: new ( io:: ErrorKind :: Other , "" ) )
63
+ } ) ;
64
+
57
65
aaaaaaaaaaaaaaaa
58
66
. map ( |x| {
59
67
x += 1 ;
You can’t perform that action at this time.
0 commit comments