Skip to content

Commit 9b1de8a

Browse files
committed
change encapsulation for usage in redisearch_rs
1 parent 5a54770 commit 9b1de8a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/scan_keys.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::cell::RefCell;
2-
31
// This example shows the usage of the scan functionality of the Rust Redis Module API Wrapper.
42
//
53
// The example implements three commands:

src/key.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl RedisKey {
7070
Self { ctx, key_inner }
7171
}
7272

73-
pub(crate) fn open_with_flags(
73+
pub fn open_with_flags(
7474
ctx: *mut raw::RedisModuleCtx,
7575
key: &RedisString,
7676
flags: KeyFlags,
@@ -80,7 +80,7 @@ impl RedisKey {
8080
Self { ctx, key_inner }
8181
}
8282

83-
pub(crate) const fn from_raw_parts(
83+
pub const fn from_raw_parts(
8484
ctx: *mut raw::RedisModuleCtx,
8585
key_inner: *mut raw::RedisModuleKey,
8686
) -> Self {
@@ -206,7 +206,7 @@ impl RedisKeyWritable {
206206
Self { ctx, key_inner }
207207
}
208208

209-
pub(crate) fn open_with_flags(
209+
pub fn open_with_flags(
210210
ctx: *mut raw::RedisModuleCtx,
211211
key: &RedisString,
212212
flags: KeyFlags,

0 commit comments

Comments
 (0)