Skip to content

Commit bff9955

Browse files
sisciagavrie
authored andcommitted
fix formating and import
1 parent fb14d03 commit bff9955

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ macro_rules! redis_module {
7373
]),* $(,)*
7474
] $(,)*
7575
) => {
76-
use std::os::raw::c_int;
76+
use std::os::raw::{c_int, c_char};
7777
use std::ffi::CString;
7878
use std::slice;
7979

@@ -88,7 +88,7 @@ macro_rules! redis_module {
8888
_argc: c_int,
8989
) -> c_int {
9090
let mut name_buffer = [0; 64];
91-
let mut dest = name_buffer.as_mut_ptr();
91+
let mut dest = name_buffer.as_mut_ptr();
9292
for byte in $module_name.chars() {
9393
unsafe {
9494
*dest = byte as i8;
@@ -101,7 +101,7 @@ macro_rules! redis_module {
101101

102102
if unsafe { raw::Export_RedisModule_Init(
103103
ctx,
104-
name_buffer.as_ptr() as *const std::os::raw::c_char,
104+
name_buffer.as_ptr() as *const c_char,
105105
module_version,
106106
raw::REDISMODULE_APIVER_1 as c_int,
107107
) } == raw::Status::Err as c_int { return raw::Status::Err as c_int; }

0 commit comments

Comments
 (0)