Skip to content

Commit

Permalink
No need to borrow with a smarter borrow checker (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson authored Nov 19, 2024
1 parent 7a25525 commit 77b2635
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neqo-transport/src/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 77b2635

Please sign in to comment.