Skip to content

Commit d46a932

Browse files
authored
Fix compilation also when used by RedisJsonHdt (RedisJSON#1121)
* Fix use declarations * Move use declarations into macro
1 parent 610672e commit d46a932

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

redis_json/src/c_api.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ macro_rules! redis_json_module_export_shared_api {
328328
pre_command_function: $pre_command_function_expr:expr,
329329
) => {
330330
use std::ptr::NonNull;
331-
use std::ffi::CString;
332331

333332
#[no_mangle]
334333
pub extern "C" fn JSONAPI_openKey(

redis_json/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ macro_rules! redis_json_module_create {(
118118
use std::marker::PhantomData;
119119
use std::os::raw::{c_double, c_int, c_longlong};
120120
use redis_module::raw as rawmod;
121-
use redis_module::logging::RedisLogLevel;
122121
use rawmod::ModuleOptions;
123122
use redis_module::redis_module;
123+
use redis_module::logging::RedisLogLevel;
124124

125125
use std::{
126-
ffi::CStr,
126+
ffi::{CStr, CString},
127127
os::raw::{c_char, c_void},
128128
};
129129
use libc::size_t;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy