We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93be6f2 commit 127782bCopy full SHA for 127782b
src/lib.rs
@@ -193,7 +193,7 @@ impl<'a> GenericConnection for Transaction<'a> {
193
let mut stmts = self.conn.get_cache().borrow_mut();
194
195
if let Some(stmt) = stmts.get(&query) {
196
- return Ok(unsafe { mem::transmute(stmt.clone()) });
+ return Ok(stmt.clone());
197
}
198
199
Ok(Rc::new(try!(self.trans.prepare(query[]))))
0 commit comments