diff --git a/Cargo.toml b/Cargo.toml index fb9b09a..672215d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ regex = "0.2" [dependencies.libsqlite3-sys] path = "libsqlite3-sys" -version = "0.6.1" +version = "0.7.0" [[test]] name = "config_log" diff --git a/src/error.rs b/src/error.rs index e0aa145..ada725d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -195,7 +195,7 @@ pub fn error_from_sqlite_code(code: c_int, message: Option) -> Error { Error::SqliteFailure(ffi::Error::new(code), message) } -pub fn error_from_handle(db: *mut ffi::Struct_sqlite3, code: c_int) -> Error { +pub fn error_from_handle(db: *mut ffi::sqlite3, code: c_int) -> Error { let message = if db.is_null() { None } else { diff --git a/src/lib.rs b/src/lib.rs index 0211e7b..cb15ee6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -499,7 +499,7 @@ impl Connection { /// on the rusqlite repository](https://github.com/jgallagher/rusqlite/issues) and describe /// your use case. This function is unsafe because it gives you raw access to the SQLite /// connection, and what you do with it could impact the safety of this `Connection`. - pub unsafe fn handle(&self) -> *mut ffi::Struct_sqlite3 { + pub unsafe fn handle(&self) -> *mut ffi::sqlite3 { self.db.borrow().db() } @@ -521,7 +521,7 @@ impl fmt::Debug for Connection { } struct InnerConnection { - db: *mut ffi::Struct_sqlite3, + db: *mut ffi::sqlite3, } /// Old name for `OpenFlags`. `SqliteOpenFlags` is deprecated. @@ -601,7 +601,7 @@ impl InnerConnection { } } - fn db(&self) -> *mut ffi::Struct_sqlite3 { + fn db(&self) -> *mut ffi::sqlite3 { self.db }