connection_status: fix deadlock when poisoning connection (#446) #143
Annotations
2 warnings
|
this `impl` can be derived:
src/exchange.rs#L10
warning: this `impl` can be derived
--> src/exchange.rs:10:1
|
10 | / impl Default for ExchangeKind {
11 | | fn default() -> Self {
12 | | Self::Direct
13 | | }
14 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls
help: replace the manual implementation with a derive attribute and mark the default variant
|
2 + #[derive(Default)]
3 ~ pub enum ExchangeKind {
4 | Custom(String),
5 ~ #[default]
6 ~ Direct,
|
|
|
this `impl` can be derived:
src/consumer_status.rs#L60
warning: this `impl` can be derived
--> src/consumer_status.rs:60:1
|
60 | / impl Default for ConsumerState {
61 | | fn default() -> Self {
62 | | Self::Active
63 | | }
64 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls
= note: `-W clippy::derivable-impls` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::derivable_impls)]`
help: replace the manual implementation with a derive attribute and mark the default variant
|
44 + #[derive(Default)]
45 ~ pub enum ConsumerState {
46 ~ #[default]
47 ~ Active,
|
|