Skip to content

Commit dcacb9b

Browse files
authored
Simplify PyFunctionArgument impl on &Bound<T> (#5018)
1 parent 03c31c5 commit dcacb9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl_/extract_argument.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ impl<'a, 'py, T: 'py> PyFunctionArgument<'a, 'py> for &'a Bound<'py, T>
4141
where
4242
T: PyTypeCheck,
4343
{
44-
type Holder = Option<()>;
44+
type Holder = ();
4545

4646
#[inline]
47-
fn extract(obj: &'a Bound<'py, PyAny>, _: &'a mut Option<()>) -> PyResult<Self> {
47+
fn extract(obj: &'a Bound<'py, PyAny>, _: &'a mut ()) -> PyResult<Self> {
4848
obj.downcast().map_err(Into::into)
4949
}
5050
}

0 commit comments

Comments
 (0)