Address clippy::identity_conversion issues

This commit is contained in:
Samuele Maci 2019-08-17 14:10:36 +02:00
parent 247c8b5f1c
commit 0de22c665f
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ mod test {
.unwrap()
.call_method("array", ("f", (1.0, 1.5, 2.0, 2.5)), None)
.unwrap();
let buffer = PyBuffer::get(py, array.into()).unwrap();
let buffer = PyBuffer::get(py, array).unwrap();
assert_eq!(buffer.dimensions(), 1);
assert_eq!(buffer.item_count(), 4);
assert_eq!(buffer.format().to_str().unwrap(), "f");