summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-28 20:33:46 -0400
committerMason Reed <mason@vector35.com>2025-07-28 20:33:56 -0400
commit464dda74bdfd75b498df367cbc19aebd907e36dc (patch)
treee457c81602769b8089fe178b09dc95a22548afb6 /rust
parent490ffa62a86085c02c5a3bd857791a27e60d58b6 (diff)
[Rust] Misc formatting
Diffstat (limited to 'rust')
-rw-r--r--rust/src/binary_view.rs2
-rw-r--r--rust/src/progress.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs
index a4a6b6cb..8eb822f7 100644
--- a/rust/src/binary_view.rs
+++ b/rust/src/binary_view.rs
@@ -242,7 +242,7 @@ pub trait BinaryViewExt: BinaryViewBase {
}
/// Search the view using the query options.
- ///
+ ///
/// In the `on_match` callback return `false` to stop searching.
fn search_with_progress<P: ProgressCallback, C: FnMut(u64, &DataBuffer) -> bool>(
&self,
diff --git a/rust/src/progress.rs b/rust/src/progress.rs
index e6897e68..6280a7b6 100644
--- a/rust/src/progress.rs
+++ b/rust/src/progress.rs
@@ -2,9 +2,9 @@ use std::ffi::c_void;
pub trait ProgressCallback: Sized {
type SplitProgressType: SplitProgressBuilder;
-
+
/// Caller function will call this to report progress.
- ///
+ ///
/// Return `false` to tell the caller to stop.
fn progress(&mut self, progress: usize, total: usize) -> bool;