@@ -379,7 +379,9 @@ mod tests {
379379 assert ! ( !table. contains_key( "touch" ) ) ;
380380 }
381381
382- struct TestStream ;
382+ struct TestStream {
383+ _marker : u8 ,
384+ }
383385
384386 #[ async_trait:: async_trait]
385387 impl StreamTrait for TestStream {
@@ -399,7 +401,7 @@ mod tests {
399401
400402 fn run_command ( table : & CmdTable , name : & str , argv : & [ Vec < u8 > ] ) -> RespData {
401403 let command = table. get ( name) . expect ( "command should be registered" ) ;
402- let client = Client :: new ( Box :: new ( TestStream ) ) ;
404+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
403405 client. set_cmd_name ( name. as_bytes ( ) ) ;
404406 client. set_argv ( argv) ;
405407 command. execute ( & client, Arc :: new ( Storage :: new ( 1 , 0 ) ) ) ;
@@ -417,7 +419,7 @@ mod tests {
417419 fn hello_command_returns_resp3_handshake ( ) {
418420 let table = create_command_table ( no_requirepass_provider ( ) ) ;
419421 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
420- let client = Client :: new ( Box :: new ( TestStream ) ) ;
422+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
421423 client. set_cmd_name ( b"hello" ) ;
422424 client. set_argv ( & [ b"hello" . to_vec ( ) , b"3" . to_vec ( ) ] ) ;
423425
@@ -663,7 +665,7 @@ mod tests {
663665 fn hello_bare_with_requirepass_returns_noauth ( ) {
664666 let table = create_command_table ( test_requirepass_provider ( Some ( "secret" ) ) ) ;
665667 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
666- let client = Client :: new ( Box :: new ( TestStream ) ) ;
668+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
667669 client. set_cmd_name ( b"hello" ) ;
668670 client. set_argv ( & [ b"hello" . to_vec ( ) , b"3" . to_vec ( ) ] ) ;
669671
@@ -682,7 +684,7 @@ mod tests {
682684 fn hello_setname_sets_client_name ( ) {
683685 let table = create_command_table ( no_requirepass_provider ( ) ) ;
684686 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
685- let client = Client :: new ( Box :: new ( TestStream ) ) ;
687+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
686688 client. set_cmd_name ( b"hello" ) ;
687689 client. set_argv ( & [
688690 b"hello" . to_vec ( ) ,
@@ -704,7 +706,7 @@ mod tests {
704706 fn hello_auth_with_correct_password_authenticates ( ) {
705707 let table = create_command_table ( test_requirepass_provider ( Some ( "secret" ) ) ) ;
706708 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
707- let client = Client :: new ( Box :: new ( TestStream ) ) ;
709+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
708710 client. set_cmd_name ( b"hello" ) ;
709711 client. set_argv ( & [
710712 b"hello" . to_vec ( ) ,
@@ -729,7 +731,7 @@ mod tests {
729731 fn hello_auth_with_wrong_password_returns_wrongpass ( ) {
730732 let table = create_command_table ( test_requirepass_provider ( Some ( "secret" ) ) ) ;
731733 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
732- let client = Client :: new ( Box :: new ( TestStream ) ) ;
734+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
733735 client. set_cmd_name ( b"hello" ) ;
734736 client. set_argv ( & [
735737 b"hello" . to_vec ( ) ,
@@ -754,7 +756,7 @@ mod tests {
754756 fn hello_auth_without_requirepass_returns_error ( ) {
755757 let table = create_command_table ( no_requirepass_provider ( ) ) ;
756758 let command = table. get ( "hello" ) . expect ( "HELLO should be registered" ) ;
757- let client = Client :: new ( Box :: new ( TestStream ) ) ;
759+ let client = Client :: new ( Box :: new ( TestStream { _marker : 0 } ) ) ;
758760 client. set_cmd_name ( b"hello" ) ;
759761 client. set_argv ( & [
760762 b"hello" . to_vec ( ) ,
0 commit comments