Skip to content

Commit 43b6d55

Browse files
committed
Remove unnecessary variables
1 parent 23aef10 commit 43b6d55

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/macros.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ macro_rules! redis_command {
99
$keystep:expr) => {{
1010
let name = CString::new($command_name).unwrap();
1111
let flags = CString::new($command_flags).unwrap();
12-
let firstkey: i32 = $firstkey;
13-
let lastkey: i32 = $lastkey;
14-
let keystep: i32 = $keystep;
1512

1613
/////////////////////
1714
extern "C" fn do_command(
@@ -45,9 +42,9 @@ macro_rules! redis_command {
4542
name.as_ptr(),
4643
Some(do_command),
4744
flags.as_ptr(),
48-
firstkey,
49-
lastkey,
50-
keystep,
45+
$firstkey,
46+
$lastkey,
47+
$keystep,
5148
)
5249
} == raw::Status::Err as c_int
5350
{

0 commit comments

Comments
 (0)