mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 22:08:55 +08:00 
			
		
		
		
	Remove workaround for Rust compiler bug that was fixed in 1.9.
This commit is contained in:
		| @@ -881,10 +881,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) | ||||
|                 ) | ||||
|             }); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user