Relax unnecessary unique borrow

This commit is contained in:
Benjamin Saunders
2024-05-19 11:20:15 -07:00
parent e37a8f2e06
commit 1b913cb20b
+1 -1
View File
@@ -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),