Skip to content

Commit

Permalink
fix: apply suggestions from clippy beta (1.70)
Browse files Browse the repository at this point in the history
Pull-Request: #3819.
  • Loading branch information
thomaseizinger authored Apr 25, 2023
1 parent df19abb commit 5657f5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions transports/webrtc/src/tokio/substream/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ impl State {

/// Acts as a "barrier" for [`futures::AsyncRead::poll_read`].
pub(crate) fn read_barrier(&self) -> io::Result<()> {
use crate::tokio::substream::State::{Open, ReadClosed, WriteClosed};
use State::*;

let kind = match self {
Expand All @@ -212,7 +211,6 @@ impl State {

/// Acts as a "barrier" for [`futures::AsyncWrite::poll_write`].
pub(crate) fn write_barrier(&self) -> io::Result<()> {
use crate::tokio::substream::State::{Open, ReadClosed, WriteClosed};
use State::*;

let kind = match self {
Expand Down

0 comments on commit 5657f5c

Please sign in to comment.