Skip to content

Commit

Permalink
asserting that optional is not None if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimfeldblum committed Nov 5, 2024
1 parent 3b44a9a commit 088fcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ macro_rules! redis_command {
let optional = AclCategory::from($optional_acl_categories);
assert!(optional != AclCategory::None);
optional_failed = false;
if mandatory != AclCategory::None && optional != AclCategory::None {
if mandatory != AclCategory::None {
acl_categories = CString::new(format!("{mandatory} {optional}")).unwrap();
} else {
acl_categories = CString::new(format!("{optional}")).unwrap();
Expand Down

0 comments on commit 088fcec

Please sign in to comment.