Commit e40bd05
committed
Fix clippy::derivable_impls warning
```
error: this `impl` can be derived
--> futures-util/src/stream/select_with_strategy.rs:33:1
|
33 | / impl Default for PollNext {
34 | | fn default() -> Self {
35 | | Self::Left
36 | | }
37 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#derivable_impls
= note: `-D clippy::derivable-impls` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::derivable_impls)]`
help: replace the manual implementation with a derive attribute and mark the default variant
|
9 + #[derive(Default)]
10 | pub enum PollNext {
11 | /// Poll the first stream.
12 ~ #[default]
13 ~ Left,
|
```1 parent de9274e commit e40bd05
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
0 commit comments