fully disambiguate types

This commit is contained in:
mejrs 2021-08-17 22:32:41 +02:00
parent f79420dabd
commit 21196e68e2

View file

@ -345,13 +345,13 @@ fn impl_methods_inventory(cls: &syn::Ident) -> TokenStream {
quote! { quote! {
#[doc(hidden)] #[doc(hidden)]
pub struct #inventory_cls { pub struct #inventory_cls {
methods: Vec<pyo3::class::PyMethodDefType>, methods: ::std::vec::Vec<::pyo3::class::PyMethodDefType>,
} }
impl ::pyo3::class::impl_::PyMethodsInventory for #inventory_cls { impl ::pyo3::class::impl_::PyMethodsInventory for #inventory_cls {
fn new(methods: Vec<pyo3::class::PyMethodDefType>) -> Self { fn new(methods: ::std::vec::Vec<::pyo3::class::PyMethodDefType>) -> Self {
Self { methods } Self { methods }
} }
fn get(&'static self) -> &'static [pyo3::class::PyMethodDefType] { fn get(&'static self) -> &'static [::pyo3::class::PyMethodDefType] {
&self.methods &self.methods
} }
} }