File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn do_show_scanning(con: &mut redis::Connection) -> redis::RedisResult<()> {
57
57
// since rust currently does not track temporaries for us, we need to
58
58
// store it in a local variable.
59
59
let mut cmd = redis:: cmd ( "SSCAN" ) ;
60
- cmd. arg ( "my_set" ) . cursor_arg ( 0 ) ;
60
+ cmd. arg ( "my_set" ) . cursor_arg ( "0" . to_owned ( ) ) ;
61
61
62
62
// as a simple exercise we just sum up the iterator. Since the fold
63
63
// method carries an initial value we do not need to define the
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ mod basic_async {
439
439
440
440
let mut iter = redis:: cmd ( "SSCAN" )
441
441
. arg ( "foo" )
442
- . cursor_arg ( 0 )
442
+ . cursor_arg ( "0" . to_owned ( ) )
443
443
. clone ( )
444
444
. iter_async ( & mut con)
445
445
. await
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ mod basic {
374
374
375
375
let iter = redis:: cmd ( "SSCAN" )
376
376
. arg ( "foo" )
377
- . cursor_arg ( 0 )
377
+ . cursor_arg ( "0" . to_owned ( ) )
378
378
. clone ( )
379
379
. iter ( & mut con)
380
380
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments