Feedback
This commit is contained in:
parent
1b9763fef2
commit
00ea040834
|
@ -5,6 +5,8 @@
|
||||||
//!
|
//!
|
||||||
//! It used internally by the PyO3 crate's build script to apply the same configuration.
|
//! It used internally by the PyO3 crate's build script to apply the same configuration.
|
||||||
|
|
||||||
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
mod impl_;
|
mod impl_;
|
||||||
|
|
||||||
|
|
|
@ -252,6 +252,7 @@
|
||||||
clippy::upper_case_acronyms,
|
clippy::upper_case_acronyms,
|
||||||
clippy::missing_safety_doc
|
clippy::missing_safety_doc
|
||||||
)]
|
)]
|
||||||
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
||||||
|
|
||||||
// Until `extern type` is stabilized, use the recommended approach to
|
// Until `extern type` is stabilized, use the recommended approach to
|
||||||
// model opaque types:
|
// model opaque types:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||||
//! This crate contains the implementation of the proc macro attributes
|
//! This crate contains the implementation of the proc macro attributes
|
||||||
|
|
||||||
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
rustdoc::bare_urls
|
rustdoc::bare_urls
|
||||||
)
|
)
|
||||||
)]
|
)]
|
||||||
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
||||||
// Deny some lints in doctests.
|
// Deny some lints in doctests.
|
||||||
// Use `#[allow(...)]` locally to override.
|
// Use `#[allow(...)]` locally to override.
|
||||||
#![doc(test(attr(
|
#![doc(test(attr(
|
||||||
|
@ -234,7 +235,7 @@
|
||||||
//! let code = "os.getenv('USER') or os.getenv('USERNAME') or 'Unknown'";
|
//! let code = "os.getenv('USER') or os.getenv('USERNAME') or 'Unknown'";
|
||||||
//! let user: String = py.eval(code, None, Some(&locals))?.extract()?;
|
//! let user: String = py.eval(code, None, Some(&locals))?.extract()?;
|
||||||
//!
|
//!
|
||||||
//! println!("Hello {}, I'm Python<'_> {}", user, version);
|
//! println!("Hello {}, I'm Python {}", user, version);
|
||||||
//! Ok(())
|
//! Ok(())
|
||||||
//! })
|
//! })
|
||||||
//! }
|
//! }
|
||||||
|
|
Loading…
Reference in a new issue