Skip to content

Commit

Permalink
make sctp::poll_timeout as &self
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Mar 1, 2024
1 parent 4b62d38 commit dd7992e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sctp/src/association/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl Association {
/// - a call to `poll_transmit` returned `Some`
/// - a call was made to `handle_timeout`
#[must_use]
pub fn poll_timeout(&mut self) -> Option<Instant> {
pub fn poll_timeout(&self) -> Option<Instant> {
self.timers.next_timeout()
}

Expand Down

0 comments on commit dd7992e

Please sign in to comment.