Skip to content

Commit afcc87e

Browse files
committed
Feature gate try_from
This was discovered PyO3#5 (comment)
1 parent 0b511e8 commit afcc87e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(specialization, proc_macro, try_from, fn_must_use)]
1+
#![feature(specialization, proc_macro)]
22

33
//! Rust bindings to the Python interpreter.
44
//!

src/objects/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ macro_rules! pyobject_extract(
180180
}
181181
}
182182

183+
#[cfg(feature = "try_from")]
183184
impl<'source> $crate::std::convert::TryFrom<&'source $crate::PyObjectRef> for $t
184185
{
185186
type Error = $crate::PyErr;

0 commit comments

Comments
 (0)