From 3906589e027a93bfc668a6f0fbd29d3f73808687 Mon Sep 17 00:00:00 2001 From: ignalina Date: Tue, 25 Oct 2022 01:36:34 +0200 Subject: [PATCH] using alloy.rs trait --- ffi/rust/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffi/rust/src/lib.rs b/ffi/rust/src/lib.rs index a71913c..35794bf 100644 --- a/ffi/rust/src/lib.rs +++ b/ffi/rust/src/lib.rs @@ -89,10 +89,10 @@ pub unsafe extern "C" fn from_chunks_ffi( arrays.push(array); } - for (i, array) in arrays.iter().enumerate() { - info!("array{}: {:?}", i + 1, array); - } + // @Wilhelm help me make a load specified .so file and create instance of OneShot instead of DummyBackend + let db: DummyBackend = DummyBackend{ ddlname: String::from("dummy") }; + db.from_chunks(arrays) as c_uint + - arrays.len() as c_uint }