Use updated Service trait #438
Annotations
14 warnings
Rustfmt (stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Rustfmt (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
the following explicit lifetimes could be elided: 'f:
src/dispatcher.rs#L394
warning: the following explicit lifetimes could be elided: 'f
--> src/dispatcher.rs:394:6
|
394 | impl<'f, F, E> Future for ServiceResult<'f, F, E>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
394 - impl<'f, F, E> Future for ServiceResult<'f, F, E>
394 + impl<F, E> Future for ServiceResult<'_, F, E>
|
|
this `if` statement can be collapsed:
src/dispatcher.rs#L142
warning: this `if` statement can be collapsed
--> src/dispatcher.rs:142:9
|
142 | / if self.idle_timeout.non_zero() {
143 | | if self.idle_sleep.poll_elapsed(cx).is_ready() {
144 | | log::trace!(
145 | | "{}: Send keep-alive ping, timeout: {:?} secs",
... |
151 | | }
152 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
142 ~ if self.idle_timeout.non_zero() && self.idle_sleep.poll_elapsed(cx).is_ready() {
143 + log::trace!(
144 + "{}: Send keep-alive ping, timeout: {:?} secs",
145 + self.sink.tag(),
146 + self.idle_timeout
147 + );
148 + self.sink.post_frame(AmqpFrame::new(0, Frame::Empty));
149 + self.idle_sleep.reset(self.idle_timeout);
150 + }
|
|
Clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
the following explicit lifetimes could be elided: 'f:
src/dispatcher.rs#L394
warning: the following explicit lifetimes could be elided: 'f
--> src/dispatcher.rs:394:6
|
394 | impl<'f, F, E> Future for ServiceResult<'f, F, E>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
394 - impl<'f, F, E> Future for ServiceResult<'f, F, E>
394 + impl<F, E> Future for ServiceResult<'_, F, E>
|
|
this `if` statement can be collapsed:
src/dispatcher.rs#L142
warning: this `if` statement can be collapsed
--> src/dispatcher.rs:142:9
|
142 | / if self.idle_timeout.non_zero() {
143 | | if self.idle_sleep.poll_elapsed(cx).is_ready() {
144 | | log::trace!(
145 | | "{}: Send keep-alive ping, timeout: {:?} secs",
... |
151 | | }
152 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
142 ~ if self.idle_timeout.non_zero() && self.idle_sleep.poll_elapsed(cx).is_ready() {
143 + log::trace!(
144 + "{}: Send keep-alive ping, timeout: {:?} secs",
145 + self.sink.tag(),
146 + self.idle_timeout
147 + );
148 + self.sink.post_frame(AmqpFrame::new(0, Frame::Empty));
149 + self.idle_sleep.reset(self.idle_timeout);
150 + }
|
|