File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,11 @@ impl DownloadInstance {
121121 }
122122 }
123123
124- unsafe extern "C" fn o_progress_callback ( ctxt : * mut c_void , progress : usize , total : usize ) -> bool {
124+ unsafe extern "C" fn o_progress_callback (
125+ ctxt : * mut c_void ,
126+ progress : usize ,
127+ total : usize ,
128+ ) -> bool {
125129 let callbacks = ctxt as * mut DownloadInstanceOutputCallbacks ;
126130 if let Some ( func) = & mut ( * callbacks) . progress {
127131 ( func) ( progress, total)
@@ -186,7 +190,11 @@ impl DownloadInstance {
186190 }
187191 }
188192
189- unsafe extern "C" fn i_progress_callback ( ctxt : * mut c_void , progress : usize , total : usize ) -> bool {
193+ unsafe extern "C" fn i_progress_callback (
194+ ctxt : * mut c_void ,
195+ progress : usize ,
196+ total : usize ,
197+ ) -> bool {
190198 let callbacks = ctxt as * mut DownloadInstanceInputOutputCallbacks ;
191199 if let Some ( func) = & mut ( * callbacks) . progress {
192200 ( func) ( progress, total)
You can’t perform that action at this time.
0 commit comments