File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " redisearch_api"
3- version = " 0.4.4 "
3+ version = " 0.5.0 "
44authors = [" Gavrie Philipson <gavrie@redislabs.com>" , " Guy Korland <guy.korland@redislabs.com>" ]
55edition = " 2018"
66description = " Rust RediSearch API binding"
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
1414
1515
1616[dependencies ]
17- redis-module = { version =" 0.9.2 " , features = [" experimental-api" ]}
17+ redis-module = { version =" 0.11 " , features = [" experimental-api" ]}
1818bitflags = " 1.1"
1919libc = " 0.2"
2020time = " 0.1"
Original file line number Diff line number Diff line change @@ -129,12 +129,12 @@ impl Index {
129129 } ;
130130
131131 if !err_ptr. is_null ( ) {
132- let err = unsafe { CStr :: from_ptr ( err_ptr) } . to_str ( ) ?. to_owned ( ) ;
132+ let message = unsafe { CStr :: from_ptr ( err_ptr) } . to_str ( ) ?. to_owned ( ) ;
133133
134134 // FIXME: free() the err_ptr value.
135135 // This should be exposed from the RediSearch API. Talk to Meir.
136136
137- return Err ( err . into ( ) ) ;
137+ return Err ( RedisError :: String ( message ) ) ;
138138 }
139139
140140 Ok ( ResultsIterator :: from_raw ( results_iter, self ) ?)
You can’t perform that action at this time.
0 commit comments