Remove specialization from IntoPy implementation

This commit is contained in:
David Hewitt 2020-01-07 09:32:34 +00:00
parent bf507da154
commit 72e9abd4c7
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
* The blanket implementations for `FromPyObject` for `&T` and `&mut T` are no longer specializable. Implement `PyTryFrom` for your type to control the behavior of `FromPyObject::extract()` for your types.
* The implementation for `IntoPy<U> for T` where `U: FromPy<T>` is no longer specializable. Control the behavior of this via the implementation of `FromPy`.
## [0.8.5]

View File

@ -146,7 +146,7 @@ impl<T, U> IntoPy<U> for T
where
U: FromPy<T>,
{
default fn into_py(self, py: Python) -> U {
fn into_py(self, py: Python) -> U {
U::from_py(self, py)
}
}