This commit is contained in:
mejrs 2022-03-23 13:30:32 +01:00
parent 1b9763fef2
commit 00ea040834
4 changed files with 6 additions and 1 deletions

View file

@ -5,6 +5,8 @@
//!
//! 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 impl_;

View file

@ -252,6 +252,7 @@
clippy::upper_case_acronyms,
clippy::missing_safety_doc
)]
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
// Until `extern type` is stabilized, use the recommended approach to
// model opaque types:

View file

@ -1,6 +1,7 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
//! 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))]
#![recursion_limit = "1024"]

View file

@ -8,6 +8,7 @@
rustdoc::bare_urls
)
)]
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
// Deny some lints in doctests.
// Use `#[allow(...)]` locally to override.
#![doc(test(attr(
@ -234,7 +235,7 @@
//! let code = "os.getenv('USER') or os.getenv('USERNAME') or 'Unknown'";
//! 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(())
//! })
//! }