use PyPtr from top level

This commit is contained in:
Nikolay Kim 2017-06-15 10:41:29 -07:00
parent ac0594a5b2
commit fd1088f948
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ pub fn build_ptr(cls: syn::Ident, ast: &mut syn::DeriveInput) -> Tokens {
}
impl std::ops::Deref for #ptr {
type Target = _pyo3::pointers::PyPtr;
type Target = _pyo3::PyPtr;
fn deref(&self) -> &Self::Target {
&self.0