Skip to content

Commit

Permalink
chore: fix minor warnings (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Nov 25, 2023
1 parent e0b0f49 commit 1e46505
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-Dwarnings' # Never tolerate warnings.

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions test-harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ impl Arbitrary for TestConfig {
c.set_window_update_mode(if bool::arbitrary(g) {
WindowUpdateMode::OnRead
} else {
#[allow(deprecated)]
WindowUpdateMode::OnReceive
});
c.set_read_after_close(Arbitrary::arbitrary(g));
Expand Down
2 changes: 1 addition & 1 deletion yamux/src/connection/cleanup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Future for Cleanup {
type Output = ConnectionError;

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let mut this = self.get_mut();
let this = self.get_mut();

loop {
match this.state {
Expand Down
2 changes: 1 addition & 1 deletion yamux/src/connection/closing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ where
type Output = Result<()>;

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let mut this = self.get_mut();
let this = self.get_mut();

loop {
match this.state {
Expand Down
2 changes: 1 addition & 1 deletion yamux/src/frame/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<T: AsyncRead + AsyncWrite + Unpin> Stream for Io<T> {
type Item = Result<Frame<()>, FrameDecodeError>;

fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>> {
let mut this = &mut *self;
let this = &mut *self;
loop {
log::trace!("{}: read: {:?}", this.id, this.read_state);
match this.read_state {
Expand Down

0 comments on commit 1e46505

Please sign in to comment.