From 327ea4c0b4dd0e7de25b6adb9f6e45887388cae1 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 2 Nov 2022 11:14:30 +0800 Subject: [PATCH] remove: rust test code --- .gitignore | 1 - src/to-json/src/ffi.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/.gitignore b/.gitignore index fd1065e..a591128 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ /build/ /.idea/ /assets/*.txt -/to-json/target/ /cmake-build-debug/ /cmake-build-release/ /src/to-json/target/ diff --git a/src/to-json/src/ffi.rs b/src/to-json/src/ffi.rs index fc0b297..c9569be 100644 --- a/src/to-json/src/ffi.rs +++ b/src/to-json/src/ffi.rs @@ -9,12 +9,6 @@ pub unsafe extern "C" fn free_rust_string(string: *const c_char) { #[no_mangle] pub unsafe extern "C" fn to_json_rust(content: *const c_char) -> *const c_char { let content: &str = CStr::from_ptr(content).to_str().unwrap(); - - // TODO: remove test code - println!("Raw content -> {}", content); - - // TODO: convert to JSON format let content: String = to_json(content); // may return empty string - CString::new(content).unwrap().into_raw() }