Skip to content

Commit

Permalink
fix clippy beta (#4737)
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu authored Nov 27, 2024
1 parent 7bd8df8 commit b308ffa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "pyo3-examples"
version = "0.0.0"
publish = false
edition = "2021"
rust-version = "1.63"

[dev-dependencies]
pyo3 = { path = "..", features = ["auto-initialize", "extension-module"] }
Expand Down
1 change: 1 addition & 0 deletions pyo3-build-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.63"

[dependencies]
once_cell = "1"
Expand Down
6 changes: 1 addition & 5 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,11 +1122,7 @@ impl BuildFlags {
Self(
BuildFlags::ALL
.iter()
.filter(|flag| {
config_map
.get_value(flag.to_string())
.map_or(false, |value| value == "1")
})
.filter(|flag| config_map.get_value(flag.to_string()) == Some("1"))
.cloned()
.collect(),
)
Expand Down
1 change: 1 addition & 0 deletions pyo3-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ categories = ["api-bindings", "development-tools::ffi"]
license = "MIT OR Apache-2.0"
edition = "2021"
links = "python"
rust-version = "1.63"

[dependencies]
libc = "0.2.62"
Expand Down
1 change: 1 addition & 0 deletions pyo3-macros-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.63"

# Note: we use default-features = false for proc-macro related crates
# not to depend on proc-macro itself.
Expand Down
1 change: 1 addition & 0 deletions pyo3-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.63"

[lib]
proc-macro = true
Expand Down
1 change: 1 addition & 0 deletions pytests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"
description = "Python-based tests for PyO3"
edition = "2021"
publish = false
rust-version = "1.63"

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

0 comments on commit b308ffa

Please sign in to comment.