Skip to content

Commit 271fbfb

Browse files
committed
Address clippy warning
1 parent 9d0439b commit 271fbfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/to_py.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn iter_to_pyarray() {
4242
#[test]
4343
fn long_iter_to_pyarray() {
4444
pyo3::Python::with_gil(|py| {
45-
let arr = PyArray::from_iter(py, (0u32..512).map(|x| x)).readonly();
45+
let arr = PyArray::from_iter(py, 0u32..512).readonly();
4646
let slice = arr.as_slice().unwrap();
4747
for (i, &elem) in slice.iter().enumerate() {
4848
assert_eq!(i as u32, elem);

0 commit comments

Comments
 (0)