From 72c4e040bccfb0689529fa574124e35947c18236 Mon Sep 17 00:00:00 2001 From: Tim Murison Date: Tue, 23 Jun 2020 16:51:27 -0400 Subject: [PATCH] Require a mutable reference to self --- sqlx-core/src/sqlite/connection/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-core/src/sqlite/connection/mod.rs b/sqlx-core/src/sqlite/connection/mod.rs index 5e3d3d12..d70c1c89 100644 --- a/sqlx-core/src/sqlite/connection/mod.rs +++ b/sqlx-core/src/sqlite/connection/mod.rs @@ -36,7 +36,7 @@ pub struct SqliteConnection { impl SqliteConnection { /// Returns the underlying sqlite3* connection handle - pub fn as_raw_handle(&self) -> *mut sqlite3 { + pub fn as_raw_handle(&mut self) -> *mut sqlite3 { self.handle.as_ptr() } }