aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2025-07-23 00:44:07 +0300
committeromagdy <omar.professional8777@gmail.com>2025-07-23 00:44:07 +0300
commit7dbaa99eb721748f5eff2839817c6742029ad2b3 (patch)
treea8a34de7a44d25858d87c27b10a7d79afacd261d /src/macros.rs
parent257330132dacc2e754a858c342be1ef2a1105c8f (diff)
downloadredis-rust-7dbaa99eb721748f5eff2839817c6742029ad2b3.tar.xz
redis-rust-7dbaa99eb721748f5eff2839817c6742029ad2b3.zip
feat: Added simple response to INFO replication command
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 9fddef7..96b5e09 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -1,4 +1,3 @@
-#[macro_use]
#[macro_export]
macro_rules! resp {
// Null: resp!(null)
@@ -30,6 +29,7 @@ macro_rules! resp {
};
// Array: resp!(array [resp!("one"), resp!(int 2)])
+ // FIXME: this doesn't work and errors
(array [$($elem:expr),*]) => {
RespType::Array(vec![$($elem),*]).to_resp_bytes()
};