Skip to content

Commit 185bced

Browse files
committed
Add "Debug" to the context.
1 parent bc1336c commit 185bced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/context/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ unsafe impl Sync for DetachedContext {}
242242

243243
/// `Context` is a structure that's designed to give us a high-level interface to
244244
/// the Redis module API by abstracting away the raw C FFI calls.
245+
#[derive(Debug)]
245246
pub struct Context {
246247
pub ctx: *mut raw::RedisModuleCtx,
247248
}
@@ -251,6 +252,7 @@ pub struct Context {
251252
/// This guerd make sure to unset the user when freed.
252253
/// It prevent privilege escalation security issues
253254
/// that can happened by forgeting to unset the user.
255+
#[derive(Debug)]
254256
pub struct ContextUserScope<'ctx> {
255257
ctx: &'ctx Context,
256258
user: *mut raw::RedisModuleUser,

0 commit comments

Comments
 (0)