diff --git a/src/types/frozenset.rs b/src/types/frozenset.rs index 9de663dfdc3..782741d592e 100644 --- a/src/types/frozenset.rs +++ b/src/types/frozenset.rs @@ -17,7 +17,7 @@ impl<'py> PyFrozenSetBuilder<'py> { /// Create a new `FrozenSetBuilder`. /// Since this allocates a `PyFrozenSet` internally it may /// panic when running out of memory. - pub fn new<'a>(py: Python<'py>) -> PyResult> { + pub fn new(py: Python<'py>) -> PyResult> { Ok(PyFrozenSetBuilder { py_frozen_set: PyFrozenSet::empty(py)?, })