@@ -133,9 +133,9 @@ fn scramble_sha256(
133133
134134async fn encrypt_rsa < ' s > (
135135 stream : & ' s mut MySqlStream ,
136- public_key_request_id : u8 ,
136+ _public_key_request_id : u8 ,
137137 password : & ' s str ,
138- nonce : & ' s Chain < Bytes , Bytes > ,
138+ _nonce : & ' s Chain < Bytes , Bytes > ,
139139) -> Result < Vec < u8 > , Error > {
140140 // https://mariadb.com/kb/en/caching_sha2_password-authentication-plugin/
141141
@@ -156,7 +156,7 @@ async fn encrypt_rsa<'s>(
156156 #[ cfg( feature = "rsa" ) ]
157157 {
158158 // client sends a public key request
159- stream. write_packet ( & [ public_key_request_id ] [ ..] ) ?;
159+ stream. write_packet ( & [ _public_key_request_id ] [ ..] ) ?;
160160 stream. flush ( ) . await ?;
161161
162162 // server sends a public key response
@@ -166,7 +166,7 @@ async fn encrypt_rsa<'s>(
166166 // xor the password with the given nonce
167167 let mut pass = to_asciz ( password) ;
168168
169- let ( a, b) = ( nonce . first_ref ( ) , nonce . last_ref ( ) ) ;
169+ let ( a, b) = ( _nonce . first_ref ( ) , _nonce . last_ref ( ) ) ;
170170 let mut nonce = Vec :: with_capacity ( a. len ( ) + b. len ( ) ) ;
171171 nonce. extend_from_slice ( a) ;
172172 nonce. extend_from_slice ( b) ;
0 commit comments