From: Ian Jackson Date: Sun, 1 Aug 2021 17:49:52 +0000 (+0100) Subject: wip refactor body, move ok X-Git-Tag: hippotat/1.0.0~399 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=87593021e506bbee6c00d81fa52360e828c940df;p=hippotat.git wip refactor body, move ok Signed-off-by: Ian Jackson --- diff --git a/src/bin/client.rs b/src/bin/client.rs index fef1846..52c5779 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -73,22 +73,22 @@ fn submit_request<'r, 'c:'r, C:HCC>( } => { itertools::chain![ array::IntoIter::new([ - Ok::<$out,Void>( prefix1.into() ), - Ok::<$out,Void>( prefix2.into() ), + prefix1.into(), + prefix2.into(), ]).take( if upbound.is_empty() { 1 } else { 2 } ), Itertools::intersperse( upbound.into_iter().map(|u| { let out: $out = u.into(); out }), SLIP_END_SLICE.into() - ).map(Ok::<$out,Void>), - [ Ok::<$out,Void>( suffix.into() ) ], + ), + [ suffix.into() ], ] }} let body = hyper::body::Body::wrap_stream( futures::stream::iter( - content!( Bytes ) + content!( Bytes ).map(Ok::) ) );