Skip to content

Commit c4ffc21

Browse files
authored
Merge pull request #111 from RedisLabsModules/fix_unused
Fix `unused` compiler warning
2 parents fe66ea5 + 3cd6fd9 commit c4ffc21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/context/thread_safe.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ pub struct DetachedFromClient;
2727

2828
pub struct ThreadSafeContext<B> {
2929
pub(crate) ctx: *mut raw::RedisModuleCtx,
30+
31+
/// This field is only used implicitly by `Drop`, so avoid a compiler warning
32+
#[allow(dead_code)]
3033
blocked_client: B,
3134
}
3235

0 commit comments

Comments
 (0)