commit 73147828a76d752427a26361497da3d8265e28fc
parent 7246513b4e4ed2544af3aa7d8785dd34a8bbefa9
Author: William Casarin <jb55@jb55.com>
Date: Wed, 7 Feb 2024 13:03:46 -0800
subscribe: use a filter ref instead
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ndb.rs b/src/ndb.rs
@@ -80,7 +80,7 @@ impl Ndb {
Ok(())
}
- pub fn subscribe(&self, filter: Filter) -> Result<u64> {
+ pub fn subscribe(&self, filter: &Filter) -> Result<u64> {
unsafe {
let res = bindings::ndb_subscribe(self.as_ptr(), filter.as_mut_ptr(), 1);
if res == 0 {