Skip to content

Commit

Permalink
fix clippy beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu committed Nov 27, 2024
1 parent 7bd8df8 commit 719ca30
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
python-version: "3.12"
- name: resolve MSRV
id: resolve-msrv
run: echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT
run: echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["workspace"]["package"]["rust-version"])'` >> $GITHUB_OUTPUT

semver-checks:
if: github.ref != 'refs/heads/main'
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["api-bindings", "development-tools::ffi"]
license = "MIT OR Apache-2.0"
exclude = ["/.gitignore", ".cargo/config", "/codecov.yml", "/Makefile", "/pyproject.toml", "/noxfile.py", "/.github", "/tests/test_compile_error.rs", "/tests/ui"]
edition = "2021"
rust-version = "1.63"
rust-version.workspace = true

[dependencies]
cfg-if = "1.0"
Expand Down Expand Up @@ -144,6 +144,7 @@ members = [
"pytests",
"examples",
]
package.rust-version = "1.63"

[package.metadata.docs.rs]
no-default-features = true
Expand Down
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.workspace = true

[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.workspace = true

[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.workspace = true

[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.workspace = true

# 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.workspace = true

[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.workspace = true

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

0 comments on commit 719ca30

Please sign in to comment.