SqliteConnection::as_raw_handle should be unsafe as it returns a raw pointer

This commit is contained in:
Ryan Leckey 2020-11-14 22:23:36 -08:00 committed by GitHub
parent 672f724aac
commit 6837fcb5b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ pub struct SqliteConnection {
impl SqliteConnection {
/// Returns the underlying sqlite3* connection handle
pub fn as_raw_handle(&mut self) -> *mut sqlite3 {
pub unsafe fn as_raw_handle(&mut self) -> *mut sqlite3 {
self.handle.as_ptr()
}