bindings/rust: Fix Database::connect() signature

We don't want to consume `self`...
This commit is contained in:
Pekka Enberg
2025-02-27 10:01:14 +02:00
parent ddee76e0fd
commit f0b29167cd

View File

@@ -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 })
}