Skip to content

Commit

Permalink
subscribe: use a filter ref instead
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Feb 7, 2024
1 parent 7246513 commit 7314782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ndb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7314782

Please sign in to comment.