@@ -33,21 +33,21 @@ impl PgConnection {
3333 ( "TimeZone" , "UTC" ) ,
3434 ] ;
3535
36- if let Some ( ref extra_float_digits) = options. extra_float_digits {
36+ if let Some ( extra_float_digits) = options. get_extra_float_digits ( ) {
3737 params. push ( ( "extra_float_digits" , extra_float_digits) ) ;
3838 }
3939
40- if let Some ( ref application_name) = options. application_name {
40+ if let Some ( application_name) = options. get_application_name ( ) {
4141 params. push ( ( "application_name" , application_name) ) ;
4242 }
4343
44- if let Some ( ref options) = options. options {
44+ if let Some ( options) = options. get_options ( ) {
4545 params. push ( ( "options" , options) ) ;
4646 }
4747
4848 stream. write ( Startup {
49- username : Some ( & options. username ) ,
50- database : options. database . as_deref ( ) ,
49+ username : Some ( options. get_username ( ) ) ,
50+ database : Some ( options. get_database ( ) ) ,
5151 params : & params,
5252 } ) ?;
5353
@@ -77,7 +77,7 @@ impl PgConnection {
7777
7878 stream
7979 . send ( Password :: Cleartext (
80- options. password . as_deref ( ) . unwrap_or_default ( ) ,
80+ options. get_password ( ) . unwrap_or_default ( ) ,
8181 ) )
8282 . await ?;
8383 }
@@ -90,8 +90,8 @@ impl PgConnection {
9090
9191 stream
9292 . send ( Password :: Md5 {
93- username : & options. username ,
94- password : options. password . as_deref ( ) . unwrap_or_default ( ) ,
93+ username : options. get_username ( ) ,
94+ password : options. get_password ( ) . unwrap_or_default ( ) ,
9595 salt : body. salt ,
9696 } )
9797 . await ?;
0 commit comments