mirror of
https://github.com/tlsnotary/rust-yamux.git
synced 2026-01-06 19:43:59 -05:00
chore: fix minor warnings (#181)
This commit is contained in:
1
.github/workflows/rust.yml
vendored
1
.github/workflows/rust.yml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTFLAGS: '-Dwarnings' # Never tolerate warnings.
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user