@@ -6,7 +6,7 @@ use crate::rt::{Read, Write};
66use libc:: size_t;
77
88use super :: task:: hyper_context;
9- use super :: userdata:: { Userdata , hyper_userdata_drop } ;
9+ use super :: userdata:: { hyper_userdata_drop , Userdata } ;
1010
1111/// Sentinel value to return from a read or write callback that the operation
1212/// is pending.
@@ -153,7 +153,12 @@ impl Read for hyper_io {
153153 let buf_ptr = unsafe { buf. as_mut ( ) } . as_mut_ptr ( ) as * mut u8 ;
154154 let buf_len = buf. remaining ( ) ;
155155
156- match ( self . read ) ( self . userdata . as_ptr ( ) , hyper_context:: wrap ( cx) , buf_ptr, buf_len) {
156+ match ( self . read ) (
157+ self . userdata . as_ptr ( ) ,
158+ hyper_context:: wrap ( cx) ,
159+ buf_ptr,
160+ buf_len,
161+ ) {
157162 HYPER_IO_PENDING => Poll :: Pending ,
158163 HYPER_IO_ERROR => Poll :: Ready ( Err ( std:: io:: Error :: new (
159164 std:: io:: ErrorKind :: Other ,
@@ -178,7 +183,12 @@ impl Write for hyper_io {
178183 let buf_ptr = buf. as_ptr ( ) ;
179184 let buf_len = buf. len ( ) ;
180185
181- match ( self . write ) ( self . userdata . as_ptr ( ) , hyper_context:: wrap ( cx) , buf_ptr, buf_len) {
186+ match ( self . write ) (
187+ self . userdata . as_ptr ( ) ,
188+ hyper_context:: wrap ( cx) ,
189+ buf_ptr,
190+ buf_len,
191+ ) {
182192 HYPER_IO_PENDING => Poll :: Pending ,
183193 HYPER_IO_ERROR => Poll :: Ready ( Err ( std:: io:: Error :: new (
184194 std:: io:: ErrorKind :: Other ,
0 commit comments