Fix compiler error

Closes #27
This commit is contained in:
Daniel Grunwald 2015-08-21 21:27:11 +02:00
parent 6316ddc28b
commit fa5c866cd6

View file

@ -90,7 +90,7 @@ pub trait ToPyObject<'p> {
/// In cases where the result does not depend on the `'prepared` lifetime,
/// the inherent method `PyObject::extract()` can be used.
pub trait ExtractPyObject<'python, 'source, 'prepared> : Sized {
type Prepared;
type Prepared : 'source;
fn prepare_extract(obj: &'source PyObject<'python>) -> PyResult<'python, Self::Prepared>;