File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ git = "https://github.com/sfackler/rust-phf"
2222git = " https://github.com/sfackler/rust-phf"
2323
2424[dev-dependencies .url ]
25- git = " https://github.com/rust-lang/ url"
25+ git = " https://github.com/servo/ rust-url"
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ fn test_unix_connection() {
9898
9999 let unix_socket_directory = unix_socket_directories[ ] . split ( ',' ) . next ( ) . unwrap ( ) ;
100100
101- let url = format ! ( "postgres://postgres@{}" , url:: encode_component( unix_socket_directory) ) ;
101+ let path = url:: utf8_percent_encode ( unix_socket_directory, url:: PASSWORD_ENCODE_SET ) ;
102+ let url = format ! ( "postgres://postgres@{}" , path) ;
102103 let conn = or_fail ! ( PostgresConnection :: connect( url[ ] , & NoSsl ) ) ;
103104 assert ! ( conn. finish( ) . is_ok( ) ) ;
104105}
You can’t perform that action at this time.
0 commit comments