summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/download_provider.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/rust/src/download_provider.rs b/rust/src/download_provider.rs
index 6dd349e7..39136c7d 100644
--- a/rust/src/download_provider.rs
+++ b/rust/src/download_provider.rs
@@ -121,7 +121,11 @@ impl DownloadInstance {
}
}
- unsafe extern "C" fn o_progress_callback(ctxt: *mut c_void, progress: usize, total: usize) -> bool {
+ unsafe extern "C" fn o_progress_callback(
+ ctxt: *mut c_void,
+ progress: usize,
+ total: usize,
+ ) -> bool {
let callbacks = ctxt as *mut DownloadInstanceOutputCallbacks;
if let Some(func) = &mut (*callbacks).progress {
(func)(progress, total)
@@ -186,7 +190,11 @@ impl DownloadInstance {
}
}
- unsafe extern "C" fn i_progress_callback(ctxt: *mut c_void, progress: usize, total: usize) -> bool {
+ unsafe extern "C" fn i_progress_callback(
+ ctxt: *mut c_void,
+ progress: usize,
+ total: usize,
+ ) -> bool {
let callbacks = ctxt as *mut DownloadInstanceInputOutputCallbacks;
if let Some(func) = &mut (*callbacks).progress {
(func)(progress, total)