From 7cbbccf79a79c785c9b0cc0567d46d602273f10f Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 17 May 2014 16:40:08 -0700 Subject: [PATCH] Update for upstream changes --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f033a2f8..ff0b73a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -545,7 +545,8 @@ impl InnerPostgresConnection { let hasher = Hasher::new(MD5); hasher.update(output.as_bytes()); hasher.update(salt); - let output = "md5" + hasher.final().as_slice().to_hex(); + let output = format_strbuf!("md5{}", + hasher.final().as_slice().to_hex()); try_pg_conn!(self.write_messages([PasswordMessage { password: output.as_slice() }]));