From bbde0a1000d5f58d0bd7a1bbb894cb6491c48df2 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 7 Feb 2024 14:53:16 -0800 Subject: [PATCH] filter: fix build Signed-off-by: William Casarin --- src/filter.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/filter.rs b/src/filter.rs index eed2a63..691904f 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -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(); @@ -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(); @@ -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(); @@ -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();