Skip to content

Commit 68dc3da

Browse files
committed
add clippy lints to prepare for no_std support
1 parent 65d6a36 commit 68dc3da

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#![warn(
2+
clippy::alloc_instead_of_core,
3+
clippy::std_instead_of_alloc,
4+
clippy::std_instead_of_core
5+
)]
16
#![warn(missing_docs)]
27
#![cfg_attr(
38
feature = "nightly",
@@ -336,6 +341,9 @@
336341
//! [Rust from Python]: https://github.com/PyO3/pyo3#using-rust-from-python
337342
#![doc = concat!("[Features chapter of the guide]: https://pyo3.rs/v", env!("CARGO_PKG_VERSION"), "/features.html#features-reference \"Features Reference - PyO3 user guide\"")]
338343
//! [`Ungil`]: crate::marker::Ungil
344+
345+
extern crate alloc;
346+
339347
pub use crate::class::*;
340348
pub use crate::conversion::{FromPyObject, IntoPyObject, IntoPyObjectExt};
341349
pub use crate::err::{CastError, CastIntoError, PyErr, PyErrArguments, PyResult, ToPyErr};

0 commit comments

Comments
 (0)