Skip to content

Commit 0dabd84

Browse files
committed
clippy
1 parent a77b406 commit 0dabd84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use zeroize_rs::Zeroize;
66

77
/// A Python module implemented in Rust.
88
#[pymodule]
9-
fn zeroize<'py>(_py: Python, m: &Bound<'py, PyModule>) -> PyResult<()> {
9+
fn zeroize(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
1010
m.add_function(wrap_pyfunction!(zeroize1, m)?)?;
1111
// m.add_function(wrap_pyfunction!(zeroize_mv, m)?)?;
1212
m.add_function(wrap_pyfunction!(mlock, m)?)?;
@@ -15,13 +15,13 @@ fn zeroize<'py>(_py: Python, m: &Bound<'py, PyModule>) -> PyResult<()> {
1515
}
1616

1717
#[pyfunction]
18-
fn zeroize1<'py>(arr: &Bound<'py, PyAny>) -> PyResult<()> {
18+
fn zeroize1(arr: &Bound<'_, PyAny>) -> PyResult<()> {
1919
as_array_mut(arr)?.zeroize();
2020
Ok(())
2121
}
2222

2323
#[pyfunction]
24-
fn mlock<'py>(arr: &Bound<'py, PyAny>) -> PyResult<()> {
24+
fn mlock(arr: &Bound<'_, PyAny>) -> PyResult<()> {
2525
unsafe {
2626
let arr = as_array_mut(arr)?;
2727
if !_mlock(arr.as_mut_ptr(), arr.len()) {
@@ -34,7 +34,7 @@ fn mlock<'py>(arr: &Bound<'py, PyAny>) -> PyResult<()> {
3434
}
3535

3636
#[pyfunction]
37-
fn munlock<'py>(arr: &Bound<'py, PyAny>) -> PyResult<()> {
37+
fn munlock(arr: &Bound<'_, PyAny>) -> PyResult<()> {
3838
unsafe {
3939
let arr = as_array_mut(arr)?;
4040
if !_munlock(arr.as_mut_ptr(), arr.len()) {

0 commit comments

Comments
 (0)