Skip to content

Commit ccfba62

Browse files
committed
More cleanup
1 parent 487cbaf commit ccfba62

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,12 @@ impl InnerConnection {
570570
AuthenticationMD5Password { salt } => {
571571
let pass = try!(user.password.ok_or(ConnectError::MissingPassword));
572572
let mut hasher = Md5::new();
573-
let _ = hasher.input(pass.as_bytes());
574-
let _ = hasher.input(user.user.as_bytes());
573+
hasher.input(pass.as_bytes());
574+
hasher.input(user.user.as_bytes());
575575
let output = hasher.result_str();
576576
hasher.reset();
577-
let _ = hasher.input(output.as_bytes());
578-
let _ = hasher.input(&salt);
577+
hasher.input(output.as_bytes());
578+
hasher.input(&salt);
579579
let output = format!("md5{}", hasher.result_str());
580580
try!(self.write_messages(&[PasswordMessage { password: &output }]));
581581
}

src/priv_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pub fn initialize_stream(params: &ConnectParams,
170170
try!(socket.write_message(&SslRequest { code: message::SSL_CODE }));
171171
try!(socket.flush());
172172

173-
if try!(socket.read_u8()) == 'N' as u8 {
173+
if try!(socket.read_u8()) == b'N' {
174174
if ssl_required {
175175
return Err(ConnectError::NoSslSupport);
176176
} else {

src/types/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<'a, T: 'a + ToSql> ToSql for Slice<'a, T> {
6262

6363
fn accepts(ty: &Type) -> bool {
6464
match ty.kind() {
65-
&Kind::Array(ref member) => <T as ToSql>::accepts(member),
65+
&Kind::Array(ref member) => T::accepts(member),
6666
_ => false,
6767
}
6868
}

0 commit comments

Comments
 (0)