Skip to content

Commit 420e2c1

Browse files
committed
chore: fix tests/examples
1 parent 70cfe66 commit 420e2c1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

redis/examples/basic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn do_show_scanning(con: &mut redis::Connection) -> redis::RedisResult<()> {
5757
// since rust currently does not track temporaries for us, we need to
5858
// store it in a local variable.
5959
let mut cmd = redis::cmd("SSCAN");
60-
cmd.arg("my_set").cursor_arg(0);
60+
cmd.arg("my_set").cursor_arg("0".to_owned());
6161

6262
// as a simple exercise we just sum up the iterator. Since the fold
6363
// method carries an initial value we do not need to define the

redis/tests/test_async.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ mod basic_async {
439439

440440
let mut iter = redis::cmd("SSCAN")
441441
.arg("foo")
442-
.cursor_arg(0)
442+
.cursor_arg("0".to_owned())
443443
.clone()
444444
.iter_async(&mut con)
445445
.await

redis/tests/test_basic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ mod basic {
374374

375375
let iter = redis::cmd("SSCAN")
376376
.arg("foo")
377-
.cursor_arg(0)
377+
.cursor_arg("0".to_owned())
378378
.clone()
379379
.iter(&mut con)
380380
.unwrap();

0 commit comments

Comments
 (0)