Skip to content

Commit e1ef98d

Browse files
committed
fix(pre-commit): work-around false-positive lint error on Rust 1.84+
It shows error: unexpected `cfg` condition value: `gil-refs` during clippy execution The error is due to a new lint turned on on Rust 1.84 which trips older PyO3 code. It'll go away when upgrading to 0.23[^1], but it needs API changes, so for the time being the lint is disabled instead. [^1]: PyO3/pyo3#4743
1 parent 077ce28 commit e1ef98d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ rand = "0.8.4"
3131
[[bench]]
3232
harness = false
3333
name = "benches_main"
34+
35+
[lints.rust]
36+
# Required for Rust >= 1.84 && pyo3 < 0.23
37+
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(addr_of)'] }

0 commit comments

Comments
 (0)