diff --git a/src/ffi3/objimpl.rs b/src/ffi3/objimpl.rs index ca5bee0c..c033e43a 100644 --- a/src/ffi3/objimpl.rs +++ b/src/ffi3/objimpl.rs @@ -43,7 +43,7 @@ impl Default for PyObjectArenaAllocator { #[inline(always)] #[allow(unused_parens)] pub unsafe fn PyType_IS_GC(t : *mut PyTypeObject) -> c_int { - PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC) + PyType_HasFeature(t, Py_TPFLAGS_HAVE_GC) } /// Test if an object has a GC head diff --git a/src/lib.rs b/src/lib.rs index 7db6f99d..8f1b65f6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![feature(specialization, proc_macro, try_from, fn_must_use)] -#![feature(const_fn, const_unsafe_cell_new, const_size_of, const_ptr_null, const_ptr_null_mut)] //! Rust bindings to the Python interpreter. //! @@ -130,7 +129,7 @@ //! //! The extension module can then be imported into Python: //! -//! ```python +//! ```python,ignore //! >>> import hello //! >>> hello.run_rust_func("test") //! Rust says: Hello Python!