From 7c836802311b2dc7248b673d7da265484afb40cd Mon Sep 17 00:00:00 2001 From: phiresky Date: Fri, 18 Dec 2020 23:11:23 +0100 Subject: [PATCH] fix lints --- src/functions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/functions.rs b/src/functions.rs index f87ba97..6a08226 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -223,12 +223,12 @@ impl Context<'_> { } } - /// Get the db connection handle via sqlite3_context_db_handle - /// https://www.sqlite.org/c3ref/context_db_handle.html + /// Get the db connection handle via [sqlite3_context_db_handle](https://www.sqlite.org/c3ref/context_db_handle.html) + /// + /// # Safety /// /// This function is marked unsafe because there is a potential for other - /// references to the connection to be sent across threads - /// https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213 + /// references to the connection to be sent across threads, [see this comment](https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213). pub unsafe fn get_connection(&self) -> Result> { let handle = ffi::sqlite3_context_db_handle(self.ctx); Ok(ConnectionRef {