summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-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;