We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7525512 commit 1e6db53Copy full SHA for 1e6db53
newsfragments/5538.changed.md
@@ -0,0 +1 @@
1
+silence a clippy warning on rust 1.83
pyo3-macros-backend/src/pyfunction.rs
@@ -443,6 +443,8 @@ pub fn impl_wrap_pyfunction(
443
// inside a function body)
444
#[allow(unknown_lints, non_local_definitions)]
445
impl #name::MakeDef {
446
+ // We're using this to initialize a static, so it's fine.
447
+ #[allow(clippy::declare_interior_mutable_const)]
448
const _PYO3_DEF: #pyo3_path::impl_::pyfunction::PyFunctionDef =
449
#pyo3_path::impl_::pyfunction::PyFunctionDef::from_method_def(#methoddef);
450
}
0 commit comments