We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b708e15 + 5134280 commit 192e733Copy full SHA for 192e733
1 file changed
diesel/src/mysql/connection/stmt/mod.rs
@@ -121,12 +121,6 @@ impl Statement {
121
122
impl Drop for Statement {
123
fn drop(&mut self) {
124
- let drop_result = unsafe { ffi::mysql_stmt_close(self.stmt) };
125
- // FIXME: Remove this before we ship this feature. We don't really care
126
- // about any of the error cases that can occur, but I suspect we'll need
127
- // to stick an `Rc<RawConnection>` on this struct to ensure the right
128
- // drop order once prepared statement caching is added. This is mostly
129
- // here so I don't forget.
130
- assert_eq!(0, drop_result, "@sgrif forgot to delete this assertion. Please open a github issue");
+ unsafe { ffi::mysql_stmt_close(self.stmt) };
131
}
132
0 commit comments