Skip to content

Commit

Permalink
filter: fix build
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 b7d0f22 commit bbde0a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl Filter {

pub fn events(&mut self, events: Vec<[u8; 32]>) -> &mut Filter {
self.start_tag_field('e');
for id in events {
for ref id in events {
self.add_id_element(id);
}
self.end_field();
Expand All @@ -132,7 +132,7 @@ impl Filter {

pub fn ids(&mut self, ids: Vec<[u8; 32]>) -> &mut Filter {
self.start_ids_field();
for id in ids {
for ref id in ids {
self.add_id_element(id);
}
self.end_field();
Expand All @@ -141,7 +141,7 @@ impl Filter {

pub fn pubkeys(&mut self, pubkeys: Vec<[u8; 32]>) -> &mut Filter {
self.start_tag_field('p');
for pk in pubkeys {
for ref pk in pubkeys {
self.add_id_element(pk);
}
self.end_field();
Expand All @@ -168,7 +168,7 @@ impl Filter {

pub fn pubkey(&mut self, pubkeys: Vec<[u8; 32]>) -> &mut Filter {
self.start_pubkeys_field();
for pubkey in pubkeys {
for ref pubkey in pubkeys {
self.add_id_element(pubkey);
}
self.end_field();
Expand Down

0 comments on commit bbde0a1

Please sign in to comment.