mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-03 00:14:21 +01:00
bindings/rust: Fix Database::connect() signature
We don't want to consume `self`...
This commit is contained in:
@@ -52,7 +52,7 @@ pub struct Database {
|
||||
}
|
||||
|
||||
impl Database {
|
||||
pub fn connect(self) -> Result<Connection> {
|
||||
pub fn connect(&self) -> Result<Connection> {
|
||||
let conn = self.inner.connect();
|
||||
Ok(Connection { inner: conn })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user