Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ```
- Loading branch information