Skip to content

Commit a92861a

Browse files
committed
remove lifetime
1 parent 3a0aa92 commit a92861a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/random.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ unsafe impl PyTypeInfo for PyBitGenerator {
9393
}
9494

9595
/// Methods for [`PyBitGenerator`].
96-
pub trait PyBitGeneratorMethods<'py> {
96+
pub trait PyBitGeneratorMethods {
9797
/// Acquire a lock on the BitGenerator to allow calling its methods in.
9898
fn lock(&self) -> PyResult<PyBitGeneratorGuard>;
9999
}
100100

101-
impl<'py> PyBitGeneratorMethods<'py> for Bound<'py, PyBitGenerator> {
101+
impl<'py> PyBitGeneratorMethods for Bound<'py, PyBitGenerator> {
102102
fn lock(&self) -> PyResult<PyBitGeneratorGuard> {
103103
let capsule = self.getattr("capsule")?.downcast_into::<PyCapsule>()?;
104104
let lock = self.getattr("lock")?;

0 commit comments

Comments
 (0)