@@ -60,15 +60,15 @@ impl FromStr for MssqlConnectOptions {
6060 let username = url. username ( ) ;
6161 if !username. is_empty ( ) {
6262 options = options. username (
63- & * percent_decode_str ( username)
63+ & percent_decode_str ( username)
6464 . decode_utf8 ( )
6565 . map_err ( Error :: config) ?,
6666 ) ;
6767 }
6868
6969 if let Some ( password) = url. password ( ) {
7070 options = options. password (
71- & * percent_decode_str ( password)
71+ & percent_decode_str ( password)
7272 . decode_utf8 ( )
7373 . map_err ( Error :: config) ?,
7474 ) ;
@@ -82,7 +82,7 @@ impl FromStr for MssqlConnectOptions {
8282 for ( key, value) in url. query_pairs ( ) {
8383 match key. as_ref ( ) {
8484 "instance" => {
85- options = options. instance ( & * value) ;
85+ options = options. instance ( & value) ;
8686 }
8787 "encrypt" => {
8888 match value. to_lowercase ( ) . as_str ( ) {
@@ -104,7 +104,7 @@ impl FromStr for MssqlConnectOptions {
104104 options = options. trust_server_certificate ( trust) ;
105105 }
106106 "hostname_in_certificate" => {
107- options = options. hostname_in_certificate ( & * value) ;
107+ options = options. hostname_in_certificate ( & value) ;
108108 }
109109 "packet_size" => {
110110 let size = value. parse ( ) . map_err ( Error :: config) ?;
@@ -116,11 +116,11 @@ impl FromStr for MssqlConnectOptions {
116116 options = options. client_program_version ( value. parse ( ) . map_err ( Error :: config) ?)
117117 }
118118 "client_pid" => options = options. client_pid ( value. parse ( ) . map_err ( Error :: config) ?) ,
119- "hostname" => options = options. hostname ( & * value) ,
120- "app_name" => options = options. app_name ( & * value) ,
121- "server_name" => options = options. server_name ( & * value) ,
122- "client_interface_name" => options = options. client_interface_name ( & * value) ,
123- "language" => options = options. language ( & * value) ,
119+ "hostname" => options = options. hostname ( & value) ,
120+ "app_name" => options = options. app_name ( & value) ,
121+ "server_name" => options = options. server_name ( & value) ,
122+ "client_interface_name" => options = options. client_interface_name ( & value) ,
123+ "language" => options = options. language ( & value) ,
124124 _ => {
125125 return Err ( Error :: config ( MssqlInvalidOption ( key. into ( ) ) ) ) ;
126126 }
0 commit comments