diff options
Diffstat (limited to 'src/database.rs')
| -rw-r--r-- | src/database.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.rs b/src/database.rs index 7a1bb63..467c3ba 100644 --- a/src/database.rs +++ b/src/database.rs @@ -77,7 +77,7 @@ impl Database { Ok(Database{handle:DatabasePtr{ptr:db}}) } - pub fn close(self) -> Result<()> { + pub fn close(&mut self) -> Result<()> { try!(unsafe { ffi::notmuch_database_close(self.handle.ptr) }.as_result()); @@ -217,7 +217,7 @@ impl Database { Ok(Query::from_ptr(query)) } - pub fn all_tags<'d>(&self) -> Result<Tags> { + pub fn all_tags<'d>(&self) -> Result<Tags<'d, Self>> { let tags = unsafe { ffi::notmuch_database_get_all_tags(self.handle.ptr) |
