diff --git a/src/lib.rs b/src/lib.rs index 4b1b9e6..c571704 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -886,10 +886,7 @@ impl<'conn> Statement<'conn> { for (i, p) in params.iter().enumerate() { try!(unsafe { self.conn.decode_result( - // This should be - // `p.bind_parameter(self.stmt.ptr(), (i + 1) as c_int)` - // but that doesn't compile until Rust 1.9 due to a compiler bug. - ToSql::bind_parameter(*p, self.stmt.ptr(), (i + 1) as c_int) + p.bind_parameter(self.stmt.ptr(), (i + 1) as c_int) ) }); } diff --git a/src/named_params.rs b/src/named_params.rs index d864736..5486074 100644 --- a/src/named_params.rs +++ b/src/named_params.rs @@ -205,10 +205,7 @@ impl<'conn> Statement<'conn> { for &(name, value) in params { if let Some(i) = try!(self.parameter_index(name)) { try!(self.conn.decode_result(unsafe { - // This should be - // `value.bind_parameter(self.stmt.ptr(), i)` - // but that doesn't compile until Rust 1.9 due to a compiler bug. - ToSql::bind_parameter(value, self.stmt.ptr(), i) + value.bind_parameter(self.stmt.ptr(), i) })); } else { return Err(Error::InvalidParameterName(name.into()));