Skip to content

Commit afb3bcf

Browse files
committed
Fix url breakage
1 parent 8b43f0e commit afb3bcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ fn test_unix_connection() {
8989

9090
let unix_socket_directory = unix_socket_directories.split(',').next().unwrap();
9191

92-
let path = url::utf8_percent_encode(unix_socket_directory, url::USERNAME_ENCODE_SET);
92+
let path = url::percent_encoding::utf8_percent_encode(
93+
unix_socket_directory, url::percent_encoding::USERNAME_ENCODE_SET);
9394
let url = format!("postgres://postgres@{}", path);
9495
let conn = or_panic!(Connection::connect(&url[..], &SslMode::None));
9596
assert!(conn.finish().is_ok());

0 commit comments

Comments
 (0)