fix lints

This commit is contained in:
phiresky 2020-12-18 23:11:23 +01:00
parent d4f8242d0c
commit 7c83680231

View File

@ -223,12 +223,12 @@ impl Context<'_> {
} }
} }
/// Get the db connection handle via sqlite3_context_db_handle /// Get the db connection handle via [sqlite3_context_db_handle](https://www.sqlite.org/c3ref/context_db_handle.html)
/// https://www.sqlite.org/c3ref/context_db_handle.html ///
/// # Safety
/// ///
/// This function is marked unsafe because there is a potential for other /// This function is marked unsafe because there is a potential for other
/// references to the connection to be sent across threads /// references to the connection to be sent across threads, [see this comment](https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213).
/// https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213
pub unsafe fn get_connection(&self) -> Result<ConnectionRef<'_>> { pub unsafe fn get_connection(&self) -> Result<ConnectionRef<'_>> {
let handle = ffi::sqlite3_context_db_handle(self.ctx); let handle = ffi::sqlite3_context_db_handle(self.ctx);
Ok(ConnectionRef { Ok(ConnectionRef {