Add missing type cast to .take call
In my previous change, I did not cast to the `usize` type expected by `.take()`. This fixes it.
This commit is contained in:
parent
7e124a265b
commit
c8a1dc9948
1 changed files with 2 additions and 2 deletions
|
|
@ -224,8 +224,8 @@ impl MouseReporter {
|
|||
};
|
||||
|
||||
//Generate term codes
|
||||
let x_iter = std::iter::repeat(button_no_x).take(lines_x.unsigned_abs());
|
||||
let y_iter = std::iter::repeat(button_no_y).take(lines_y.unsigned_abs());
|
||||
let x_iter = std::iter::repeat(button_no_x).take(lines_x.unsigned_abs() as _);
|
||||
let y_iter = std::iter::repeat(button_no_y).take(lines_y.unsigned_abs() as _);
|
||||
|
||||
x_iter
|
||||
.chain(y_iter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue