We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
redis_command
1 parent 40de540 commit 125e49eCopy full SHA for 125e49e
src/macros.rs
@@ -16,16 +16,17 @@ macro_rules! redis_command {
16
argv: *mut *mut $crate::raw::RedisModuleString,
17
argc: c_int,
18
) -> c_int {
19
- let context = Context::new(ctx);
+ let context = $crate::Context::new(ctx);
20
21
let args_decoded: Result<Vec<_>, $crate::RedisError> =
22
unsafe { slice::from_raw_parts(argv, argc as usize) }
23
.into_iter()
24
.map(|&arg| {
25
$crate::RedisString::from_ptr(arg)
26
.map(|v| v.to_owned())
27
- .map_err(|_|$crate::RedisError::Str(
28
- "UTF8 encoding error in handler args"))
+ .map_err(|_| {
+ $crate::RedisError::Str("UTF8 encoding error in handler args")
29
+ })
30
})
31
.collect();
32
0 commit comments