diff --git a/pyo3-stub-gen-derive/src/gen_stub/pyclass.rs b/pyo3-stub-gen-derive/src/gen_stub/pyclass.rs index f3090b5..6722f07 100644 --- a/pyo3-stub-gen-derive/src/gen_stub/pyclass.rs +++ b/pyo3-stub-gen-derive/src/gen_stub/pyclass.rs @@ -86,7 +86,7 @@ impl ToTokens for PyClassInfo { } = self; let module = quote_option(module); let bases: Vec<_> = bases - .into_iter() + .iter() .map(|(mod_, name)| { let mod_ = quote_option(mod_); quote! { (#mod_, #name) } diff --git a/pyo3-stub-gen/src/generate/class.rs b/pyo3-stub-gen/src/generate/class.rs index 7a3112c..cbfacf5 100644 --- a/pyo3-stub-gen/src/generate/class.rs +++ b/pyo3-stub-gen/src/generate/class.rs @@ -47,7 +47,7 @@ impl fmt::Display for ClassDef { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let bases = self .bases - .into_iter() + .iter() .map(|(m, n)| { m.map(|m| format!("{m}.{n}")) .unwrap_or_else(|| n.to_string())