Skip to content

Commit 671a0e4

Browse files
committed
Misc rust formatting
1 parent 2f441b4 commit 671a0e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rust/src/download_provider.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)