diff --git a/Cargo.lock b/Cargo.lock index 2f07a0a..8ee94df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -460,7 +460,7 @@ checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "zeroize" -version = "0.4.21" +version = "0.4.22" dependencies = [ "libc", "memsec", diff --git a/Cargo.toml b/Cargo.toml index 0e788f8..b43d5b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zeroize" -version = "0.4.21" +version = "0.4.22" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/lib.rs b/src/lib.rs index a3e3f95..c274c4c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ fn as_array_mut<'a>(arr: &'a Bound) -> PyResult<&'a mut [u8]> { arr.as_slice_mut().unwrap() } else { return Err(PyErr::new::( - "Expected a PyByteArray or PyArray1", + "Expected a bytearray or numpy.array", )); } }; @@ -72,7 +72,7 @@ fn as_array<'a>(arr: &'a Bound) -> PyResult<&'a [u8]> { arr.as_slice().unwrap() } else { return Err(PyErr::new::( - "Expected a PyByteArray or PyArray1", + "Expected a bytearray, bytes or numpy.array", )); } };