Skip to content

Commit 5663422

Browse files
committed
[Rust] add the process step for the creation of a custom binary view
1 parent e1efc28 commit 5663422

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/src/custom_binary_view.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ pub unsafe trait CustomBinaryView: 'static + BinaryViewBase + Sync + Sized {
460460

461461
fn new(handle: &BinaryView, args: &Self::Args) -> Result<Self>;
462462
fn init(&mut self, args: Self::Args) -> Result<()>;
463+
fn process(&self) -> Result<()>;
463464
fn on_after_snapshot_data_applied(&mut self) {}
464465
}
465466

@@ -584,7 +585,7 @@ impl<'a, T: CustomBinaryViewType> CustomViewBuilder<'a, T> {
584585
Ok(_) => {
585586
// put the initialized state
586587
context.state = CustomViewContextState::Initialized { view };
587-
true
588+
context.assume_init_ref().process().is_ok()
588589
}
589590
Err(_) => {
590591
tracing::error!(

0 commit comments

Comments
 (0)