Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 73e11a3

Browse files
committed
open more tests
1 parent ddf8273 commit 73e11a3

File tree

3 files changed

+101
-101
lines changed

3 files changed

+101
-101
lines changed

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/redisjson.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl RedisJSON {
223223
pub fn arr_index(&self, path: &str, scalar: &str, start: i64, end: i64) -> Result<i64, Error> {
224224
if let Value::Array(arr) = self.get_doc(path)? {
225225
// end=-1/0 means INFINITY to support backward with RedisJSON
226-
if arr.is_empty() || end < -1 {
226+
if arr.is_empty() || end < -1 {
227227
return Ok(-1);
228228
}
229229
match serde_json::from_str(scalar)? {
@@ -266,7 +266,7 @@ impl RedisJSON {
266266
} else {
267267
"integer"
268268
}
269-
},
269+
}
270270
Value::String(_) => "string",
271271
Value::Array(_) => "array",
272272
Value::Object(_) => "object",

0 commit comments

Comments
 (0)