Don't implement Into<RawStatement> for Statement

This commit is contained in:
Thom Chiovoloni
2020-06-06 17:27:14 -07:00
committed by Thom Chiovoloni
parent 6b4f207dc1
commit f7a573e44a
2 changed files with 6 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ impl Drop for CachedStatement<'_> {
#[allow(unused_must_use)]
fn drop(&mut self) {
if let Some(stmt) = self.stmt.take() {
self.cache.cache_stmt(stmt.into());
self.cache.cache_stmt(unsafe { stmt.into_raw() });
}
}
}