Skip to content

Commit 6ea51de

Browse files
committed
cargo fmt
1 parent 69863a4 commit 6ea51de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::ffi::CString;
2-
use std::os::raw::{c_long, c_int};
2+
use std::os::raw::{c_int, c_long};
33
use std::ptr;
44

55
use crate::key::{RedisKey, RedisKeyWritable};
@@ -57,9 +57,7 @@ impl Context {
5757
}
5858

5959
pub fn is_keys_position_request(&self) -> bool {
60-
let result = unsafe {
61-
raw::RedisModule_IsKeysPositionRequest.unwrap()(self.ctx)
62-
};
60+
let result = unsafe { raw::RedisModule_IsKeysPositionRequest.unwrap()(self.ctx) };
6361

6462
result != 0
6563
}

0 commit comments

Comments
 (0)