Skip to content

Commit 824ba56

Browse files
Icxoludavidhewitt
authored andcommitted
fix clippy beta (#4737)
1 parent a967826 commit 824ba56

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

examples/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "pyo3-examples"
33
version = "0.0.0"
44
publish = false
55
edition = "2021"
6+
rust-version = "1.63"
67

78
[dev-dependencies]
89
pyo3 = { path = "..", features = ["auto-initialize", "extension-module"] }

pyo3-build-config/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
99
categories = ["api-bindings", "development-tools::ffi"]
1010
license = "MIT OR Apache-2.0"
1111
edition = "2021"
12+
rust-version = "1.63"
1213

1314
[dependencies]
1415
once_cell = "1"

pyo3-build-config/src/impl_.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1122,11 +1122,7 @@ impl BuildFlags {
11221122
Self(
11231123
BuildFlags::ALL
11241124
.iter()
1125-
.filter(|flag| {
1126-
config_map
1127-
.get_value(flag.to_string())
1128-
.map_or(false, |value| value == "1")
1129-
})
1125+
.filter(|flag| config_map.get_value(flag.to_string()) == Some("1"))
11301126
.cloned()
11311127
.collect(),
11321128
)

pyo3-ffi/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ categories = ["api-bindings", "development-tools::ffi"]
1010
license = "MIT OR Apache-2.0"
1111
edition = "2021"
1212
links = "python"
13+
rust-version = "1.63"
1314

1415
[dependencies]
1516
libc = "0.2.62"

pyo3-macros-backend/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
99
categories = ["api-bindings", "development-tools::ffi"]
1010
license = "MIT OR Apache-2.0"
1111
edition = "2021"
12+
rust-version = "1.63"
1213

1314
# Note: we use default-features = false for proc-macro related crates
1415
# not to depend on proc-macro itself.

pyo3-macros/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
99
categories = ["api-bindings", "development-tools::ffi"]
1010
license = "MIT OR Apache-2.0"
1111
edition = "2021"
12+
rust-version = "1.63"
1213

1314
[lib]
1415
proc-macro = true

pytests/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ version = "0.1.0"
55
description = "Python-based tests for PyO3"
66
edition = "2021"
77
publish = false
8+
rust-version = "1.63"
89

910
[dependencies]
1011
pyo3 = { path = "../", features = ["extension-module"] }

0 commit comments

Comments
 (0)