Skip to content

Commit

Permalink
fmt and warings
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Jun 8, 2024
1 parent 3d8cc4d commit 4b6c124
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
use std::any::Any;
use std::ops::Deref;

use libc::{self, size_t};
use numpy::{PyArray1, PyArrayMethods};
use pyo3::prelude::*;
use pyo3::types::{PyByteArray, PyBytes};
Expand Down Expand Up @@ -64,6 +60,7 @@ fn as_array_mut<'a>(arr: &'a Bound<PyAny>) -> PyResult<&'a mut [u8]> {
Ok(arr)
}

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

0 comments on commit 4b6c124

Please sign in to comment.