Skip to content

Commit b93d78b

Browse files
committed
fix: doc
1 parent bfaaafa commit b93d78b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/rpc/src/interest/kind.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ impl InterestKind {
4848
}
4949

5050
fn apply_filter(&self, notif: &CanonStateNotification) -> SubscriptionBuffer {
51-
let filter = self.as_filter().unwrap();
52-
5351
// NB: borrowing OUTSIDE the top-level closure prevents this value from
5452
// being moved into the closure, which would result in the inner
5553
// closures violating borrowing rules.
56-
let filter_params = &FilteredParams::new(Some(filter.clone()));
54+
let filter = self.as_filter().unwrap();
5755

5856
let address_filter = FilteredParams::address_filter(&filter.address);
5957
let topics_filter = FilteredParams::topics_filter(&filter.topics);

0 commit comments

Comments
 (0)