From 02a299d55e8c623e14d49adbd8a384a05fca4650 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Tue, 19 Nov 2024 14:40:15 +1100 Subject: [PATCH] No need to borrow with a smarter borrow checker --- neqo-transport/src/streams.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neqo-transport/src/streams.rs b/neqo-transport/src/streams.rs index ba8a886fc2..eccd96a9e3 100644 --- a/neqo-transport/src/streams.rs +++ b/neqo-transport/src/streams.rs @@ -334,8 +334,7 @@ impl Streams { // filter the list, removing closed streams self.send.remove_terminal(); - let send = &self.send; - let (removed_bidi, removed_uni) = self.recv.clear_terminal(send, self.role); + let (removed_bidi, removed_uni) = self.recv.clear_terminal(&self.send, self.role); // Send max_streams updates if we removed remote-initiated recv streams. // The updates will be send if any steams has been removed.