chore: fix minor warnings (#181)

This commit is contained in:
Max Inden
2023-11-25 10:13:16 +01:00
committed by GitHub
parent e0b0f495cf
commit 1e46505721
5 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ on:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-Dwarnings' # Never tolerate warnings.
jobs:
build:

View File

@@ -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));

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {