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
--- 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"