From 671a0e4ffa70e76f2cc1f4614d8ceaad52bb8bae Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 26 Apr 2025 15:32:50 -0400 Subject: Misc rust formatting --- rust/src/download_provider.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rust/src') 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) -- cgit v1.3.1