Skip to content

Commit

Permalink
Relax unnecessary unique borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed May 19, 2024
1 parent e37a8f2 commit 1b913cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/connection/streams/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl<'a> SendStream<'a> {
}

/// Check if this stream was stopped, get the reason if it was
pub fn stopped(&mut self) -> Result<Option<VarInt>, ClosedStream> {
pub fn stopped(&self) -> Result<Option<VarInt>, ClosedStream> {
match self.state.send.get(&self.id).as_ref() {
Some(Some(s)) => Ok(s.stop_reason),
Some(None) => Ok(None),
Expand Down

0 comments on commit 1b913cb

Please sign in to comment.