diff --git a/src/lib.rs b/src/lib.rs index cf00c83..798f204 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,17 +12,6 @@ use std::sync::mpsc::channel; use uuid::Uuid; -/* -#[allow(dead_code)] -#[allow(non_snake_case)] -#[allow(non_camel_case_types)] -#[allow(non_upper_case_globals)] -#[allow(improper_ctypes)] -mod ffi { - include!(concat!(env!("OUT_DIR"), "/bindings_redis.rs")); -} -*/ - mod sqlite; use sqlite as sql; diff --git a/src/redis.rs b/src/redis.rs index deeb821..1ac6e6b 100644 --- a/src/redis.rs +++ b/src/redis.rs @@ -322,8 +322,6 @@ pub fn write_file_to_rdb(f: File, let lenght = f.metadata().unwrap().len(); let blocks = lenght / block_size as u64; - println!("Dimension file: {}\n Blocks: {}", lenght, blocks); - unsafe { ffi::RedisModule_SaveSigned.unwrap()(rdb, blocks as i64); } @@ -337,7 +335,6 @@ pub fn write_file_to_rdb(f: File, return Ok(()); } Ok(n) => unsafe { - println!("Number of bytes written: {}", n); ffi::RedisModule_SaveStringBuffer.unwrap()(rdb, tw.as_slice().as_ptr() as *const i8, n) @@ -370,7 +367,6 @@ pub fn write_rdb_to_file(f: &mut File, for _ in 0..blocks { let mut dimension: libc::size_t = 0; - println!("About to load the string"); let c_str_ptr = SafeRedisModuleString { ptr: unsafe { @@ -379,7 +375,6 @@ pub fn write_rdb_to_file(f: &mut File, }, }; - println!("Dimension: {}", dimension); if dimension == 0 { break; } @@ -389,10 +384,6 @@ pub fn write_rdb_to_file(f: &mut File, dimension, dimension) }; - println!("Buffer dimension: {}, {:?}", - buffer.len(), - c_str_ptr.ptr); - let y = f.write_all(buffer.as_slice()); ::mem::forget(buffer); match y { diff --git a/src/sqlite.rs b/src/sqlite.rs index 3dfd8d4..3bb1b5b 100644 --- a/src/sqlite.rs +++ b/src/sqlite.rs @@ -60,8 +60,6 @@ pub struct Statement { impl Drop for Statement { fn drop(&mut self) { - let sql = unsafe { CStr::from_ptr(ffi::sqlite3_sql(self.stmt)) }; - println!("DROPPED STATETMENT: {:?}", sql); unsafe { ffi::sqlite3_finalize(self.stmt); }