As a user of ndarray, I can use negative indexing in slices, like I would do with NumPy
// A view of the image without borders
let block = image.slice(s![1..-1, 1..-1, 1..-1]);
Since Rust 1.45.0, I get this error when I run clippy: error: this range is empty so it will yield no values. This message is wrong: my code compiles and runs as intended. Clippy shouldn't only check if end <= start, it should also check if end is negative, or if it's a isize slice.
As a user of ndarray, I can use negative indexing in slices, like I would do with NumPy
Since Rust 1.45.0, I get this error when I run clippy:
error: this range is empty so it will yield no values. This message is wrong: my code compiles and runs as intended. Clippy shouldn't only check ifend <= start, it should also check ifendis negative, or if it's aisizeslice.