rust: enable clippy::or_fun_call lint
authorMitchell Kember <mkember@janestreet.com>
Fri, 21 Feb 2025 14:37:57 -0500
changeset 53004 c4392e8bfb9f
parent 53003 1ef08a0381a0
child 53005 8c85d139ff64
rust: enable clippy::or_fun_call lint I confirmed that this would have prevented the issue in !1280. For details see: https://rust-lang.github.io/rust-clippy/master/index.html#/or_fun_call
rust/Cargo.toml
--- a/rust/Cargo.toml	Fri Feb 21 14:37:18 2025 -0500
+++ b/rust/Cargo.toml	Fri Feb 21 14:37:57 2025 -0500
@@ -2,3 +2,6 @@
 members = ["hg-core", "hg-cpython", "hg-pyo3", "rhg", "pyo3-sharedref"]
 exclude = ["chg", "hgcli"]
 resolver = "2"
+
+[workspace.lints.clippy]
+or_fun_call = "deny"