Skip to content

Commit 4a979e3

Browse files
committed
fix build
1 parent 7ef845c commit 4a979e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ time = "0.1"
1818
enum-primitive-derive = "0.1.2"
1919
num-traits = "0.2.8"
2020

21-
[dependencies.redismodule]
21+
[dependencies.redis-module]
2222
git = "https://github.com/redislabsmodules/redismodule-rs.git"
23-
branch = "safe_context_rm_call"
23+
branch = "master"
2424
features = ["experimental-api"] # Required by RediSearch
2525

2626
[build-dependencies]

src/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use num_traits::ToPrimitive;
55

66
use crate::raw::{self, RSFieldID, RSResultsIterator, GC_POLICY_FORK, GC_POLICY_NONE};
77
use crate::{Document, FieldType};
8-
use redismodule::RedisError;
8+
use redis_module::RedisError;
99
use std::os::raw::c_char;
1010

1111
pub struct Index {
@@ -64,7 +64,7 @@ impl Index {
6464
)
6565
};
6666

67-
if status == redismodule::raw::REDISMODULE_ERR as i32 {
67+
if status == redis_module::raw::REDISMODULE_ERR as i32 {
6868
Err(RedisError::Str("error adding document"))
6969
} else {
7070
Ok(())

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extern crate bitflags;
66
#[macro_use]
77
extern crate enum_primitive_derive;
88

9-
use redismodule::raw as rawmod;
9+
use redis_module::raw as rawmod;
1010

1111
mod document;
1212
mod index;
@@ -29,7 +29,7 @@ pub fn get_c_api_version() -> i32 {
2929
}
3030

3131
pub extern "C" fn init(raw_ctx: *mut rawmod::RedisModuleCtx) -> c_int {
32-
let ctx = redismodule::Context::new(raw_ctx);
32+
let ctx = redis_module::Context::new(raw_ctx);
3333
ctx.log_debug("Initializing RediSearch...");
3434

3535
let result = unsafe { raw::RediSearch_Init(raw_ctx, raw::REDISEARCH_INIT_LIBRARY as c_int) };

0 commit comments

Comments
 (0)