Skip to content

Commit 138da2a

Browse files
committed
restore cache in CI + align to master
1 parent 1ce6348 commit 138da2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ commands:
116116
command: |
117117
if [[ $(uname -s) == Darwin ]]; then sed -i 's/regex = "1"/regex = { version = "1", features = ["perf", "unicode"] }/g' Cargo.toml; fi
118118
cat Cargo.toml
119+
- restore_cache:
120+
keys:
121+
- v3-dependencies-{{ arch }}-{{ checksum "Cargo.toml" }}
119122
- run:
120123
name: Check formatting
121124
shell: /bin/bash -l -eo pipefail

src/redismodule.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ pub fn decode_args(
101101
argv: *mut *mut raw::RedisModuleString,
102102
argc: c_int,
103103
) -> Vec<RedisString> {
104-
if argv.is_null() {
105-
return Vec::new();
106-
}
107104
unsafe { slice::from_raw_parts(argv, argc as usize) }
108105
.iter()
109106
.map(|&arg| RedisString::new(NonNull::new(ctx), arg))

0 commit comments

Comments
 (0)