From 7767426fe6be4f8e7f91cf18469e414a92453cc4 Mon Sep 17 00:00:00 2001 From: Ivan Carvalho Date: Thu, 9 Jan 2025 17:28:52 -0500 Subject: [PATCH 1/2] Silence rust clippy lint enabled after the 1.84 release --- rustworkx-core/src/dag_algo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rustworkx-core/src/dag_algo.rs b/rustworkx-core/src/dag_algo.rs index 34c7e19f21..da5e288e27 100644 --- a/rustworkx-core/src/dag_algo.rs +++ b/rustworkx-core/src/dag_algo.rs @@ -326,6 +326,7 @@ where let mut v = *first; let mut u: Option = None; // Backtrack from this node to find the path + #[allow(clippy::unnecessary_map_or)] while u.map_or(true, |u| u != v) { path.push(v); u = Some(v); From 744a9aed8bb1d081596defb9c3cea8d50dcfb8ae Mon Sep 17 00:00:00 2001 From: Ivan Carvalho Date: Thu, 9 Jan 2025 22:26:57 -0500 Subject: [PATCH 2/2] Define gil-refs feature for the sake of clippy --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a07c76d632..fb1a4935e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,6 +71,12 @@ version = "^0.11" default-features = false features = ["multi_thread"] +[features] +default = [] +# TODO: remove this once PyO3 is updated to 0.23. Currently, this is a bug in PyO3 0.22 +# that leaks some of their features in a public macro. However, this was removed in 0.23. +gil-refs = ["pyo3/gil-refs"] + [profile.release] lto = 'fat' codegen-units = 1