Skip to content

Commit 4b6c124

Browse files
committed
fmt and warings
1 parent 3d8cc4d commit 4b6c124

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
use std::any::Any;
2-
use std::ops::Deref;
3-
4-
use libc::{self, size_t};
51
use numpy::{PyArray1, PyArrayMethods};
62
use pyo3::prelude::*;
73
use pyo3::types::{PyByteArray, PyBytes};
@@ -64,6 +60,7 @@ fn as_array_mut<'a>(arr: &'a Bound<PyAny>) -> PyResult<&'a mut [u8]> {
6460
Ok(arr)
6561
}
6662

63+
#[allow(dead_code)]
6764
fn as_array<'a>(arr: &'a Bound<PyAny>) -> PyResult<&'a [u8]> {
6865
let arr = unsafe {
6966
if let Ok(arr) = arr.downcast::<PyByteArray>() {

0 commit comments

Comments
 (0)