Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimfeldblum committed Oct 27, 2024
1 parent 66f2279 commit 34c7593
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ macro_rules! redis_command {
{
return $crate::raw::Status::Err as c_int;
}

if $acl_categories != "" {
let acl_categories = CString::new($acl_categories).unwrap();

let command = unsafe {
$crate::raw::RedisModule_GetCommand.unwrap()($ctx, name.as_ptr())
};
let command =
unsafe { $crate::raw::RedisModule_GetCommand.unwrap()($ctx, name.as_ptr()) };
if command.is_null() {
return $crate::raw::Status::Err as c_int;
}
Expand Down

0 comments on commit 34c7593

Please sign in to comment.