Repository navigation
Commit 5364e6c
committed
Fix clippy::unnecessary_cast warning
```
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> futures-util/src/stream/stream/take.rs:57:37
|
57 | let lower = cmp::min(lower, self.remaining as usize);
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.remaining`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> futures-util/src/stream/stream/take.rs:60:28
|
60 | Some(x) if x < self.remaining as usize => Some(x),
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.remaining`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> futures-util/src/stream/stream/take.rs:61:23
|
61 | _ => Some(self.remaining as usize),
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.remaining`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
```1 parent 485875f commit 5364e6c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments