From 4f5abc705a147c3bb3e2baeecbfabdf14f0f3033 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Fri, 30 Dec 2016 23:25:21 -0500 Subject: [PATCH] Remove workaround for issue fixed in Rust 1.9. --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 780cb7f..76c9729 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -878,11 +878,7 @@ impl<'conn> Statement<'conn> { } fn bind_parameter(&self, param: &ToSql, col: c_int) -> Result<()> { - // This should be - // 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 value = try!(param.to_sql()); let ptr = unsafe { self.stmt.ptr() }; let value = match value {