We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0aa92 commit a92861aCopy full SHA for a92861a
src/random.rs
@@ -93,12 +93,12 @@ unsafe impl PyTypeInfo for PyBitGenerator {
93
}
94
95
/// Methods for [`PyBitGenerator`].
96
-pub trait PyBitGeneratorMethods<'py> {
+pub trait PyBitGeneratorMethods {
97
/// Acquire a lock on the BitGenerator to allow calling its methods in.
98
fn lock(&self) -> PyResult<PyBitGeneratorGuard>;
99
100
101
-impl<'py> PyBitGeneratorMethods<'py> for Bound<'py, PyBitGenerator> {
+impl<'py> PyBitGeneratorMethods for Bound<'py, PyBitGenerator> {
102
fn lock(&self) -> PyResult<PyBitGeneratorGuard> {
103
let capsule = self.getattr("capsule")?.downcast_into::<PyCapsule>()?;
104
let lock = self.getattr("lock")?;
0 commit comments