Skip to content

Commit 192e733

Browse files
authored
Merge pull request diesel-rs#908 from Eijebong/remove_fixme
Remove a forgotten FIXME
2 parents b708e15 + 5134280 commit 192e733

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • diesel/src/mysql/connection/stmt

diesel/src/mysql/connection/stmt/mod.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ impl Statement {
121121

122122
impl Drop for Statement {
123123
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");
124+
unsafe { ffi::mysql_stmt_close(self.stmt) };
131125
}
132126
}

0 commit comments

Comments
 (0)