mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
Remove workaround for issue fixed in Rust 1.9.
This commit is contained in:
parent
0d685af2d5
commit
4f5abc705a
@ -878,11 +878,7 @@ impl<'conn> Statement<'conn> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn bind_parameter(&self, param: &ToSql, col: c_int) -> Result<()> {
|
fn bind_parameter(&self, param: &ToSql, col: c_int) -> Result<()> {
|
||||||
// This should be
|
let value = try!(param.to_sql());
|
||||||
// let value = try!(param.to_sql());
|
|
||||||
// but that hits a bug in the Rust compiler around re-exported
|
|
||||||
// trait visibility. It's fixed in 1.9.
|
|
||||||
let value = try!(ToSql::to_sql(param));
|
|
||||||
|
|
||||||
let ptr = unsafe { self.stmt.ptr() };
|
let ptr = unsafe { self.stmt.ptr() };
|
||||||
let value = match value {
|
let value = match value {
|
||||||
|
Loading…
Reference in New Issue
Block a user