summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-26 15:32:50 -0400
committerMason Reed <mason@vector35.com>2025-04-26 15:33:22 -0400
commit671a0e4ffa70e76f2cc1f4614d8ceaad52bb8bae (patch)
treeab387a35572608fb0a8637b5b7baf5aa31f97de1 /rust
parent2f441b4fc4729b2bc728905e93f35ea7896ce8b3 (diff)
Misc rust formatting
Diffstat (limited to 'rust')
-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)